Skip to content

Commit

Permalink
update build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkGoosik committed Oct 12, 2024
1 parent 0395d5d commit c051517
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,25 @@ jobs:
build:
strategy:
matrix:
java: [
17,
]
os: [ ubuntu-20.04 ]
runs-on: ${{ matrix.os }}
java: [ 17 ]
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
uses: gradle/wrapper-validation-action@v2
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
- name: Make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Build
run: ./gradlew build
- name: Capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }}
uses: actions/upload-artifact@v2
if: ${{ matrix.java == '17' }}
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/kitsun.jar
Expand Down

0 comments on commit c051517

Please sign in to comment.