2023-08-14 15:56:52 +05:30
|
|
|
name: Fat JAR Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 19:48:06 +05:30
|
|
|
- uses: actions/checkout@v4
|
2023-08-14 15:56:52 +05:30
|
|
|
|
2023-09-20 04:27:44 +05:30
|
|
|
- name: set up JDK 21
|
2023-08-14 15:56:52 +05:30
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
2023-09-20 04:27:44 +05:30
|
|
|
java-version: 21
|
2023-09-20 05:24:58 +05:30
|
|
|
distribution: zulu
|
2023-08-14 15:56:52 +05:30
|
|
|
cache: "gradle"
|
|
|
|
- name: Run Build
|
|
|
|
run: ./gradlew shadowJar
|
|
|
|
- run: mv build/libs/piped-*-all.jar piped.jar
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: piped.jar
|
|
|
|
path: piped.jar
|