diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 5820fc3..72f7485 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -4,20 +4,21 @@ name: Gradle build on: [ push, pull_request ] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: + distribution: 'temurin' java-version: 17 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/ key: ${{ runner.os }}-build-aspirin-${{ hashFiles('**/build.gradle.kts') }} restore-keys: | ${{ runner.os }}-build-aspirin- - run: ./gradlew build - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: artifact path: build/libs/