From c0515171b2d67e712fbe4a000103c88ac3119c4b Mon Sep 17 00:00:00 2001 From: PinkGoosik Date: Sat, 12 Oct 2024 13:49:09 +0500 Subject: [PATCH] update build workflow --- .github/workflows/build.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e2565ab..c965a57 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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