Skip to content

Commit

Permalink
build: move to modern gradle actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed May 8, 2024
1 parent cc501d0 commit 055b881
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,16 @@ jobs:
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Build and test
uses: gradle/actions/[email protected]
with:
arguments: build shadowJar proguard

- uses: gradle/actions/[email protected]

- name: Build (Linux/Mac)
if: runner.os != 'Windows'
run: ./gradlew build shadowJar proguard

- name: Build (Windows)
if: runner.os == 'Windows'
run: gradlew.bat build shadowJar proguard

upload-artifact:
runs-on: ubuntu-latest
Expand All @@ -91,15 +97,24 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Build
uses: gradle/actions/[email protected]

- uses: gradle/actions/[email protected]
with:
dependency-graph: generate-and-submit
arguments: build shadowJar proguard

- name: Build (Linux/Mac)
if: runner.os != 'Windows'
run: ./gradlew build shadowJar proguard

- name: Build (Windows)
if: runner.os == 'Windows'
run: gradlew.bat build shadowJar proguard

- name: Upload
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 055b881

Please sign in to comment.