Update actions
This commit is contained in:
parent
025dc974ad
commit
1860973a69
1 changed files with 10 additions and 8 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
|
@ -12,20 +12,22 @@ jobs:
|
|||
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/wrapper
|
||||
~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-
|
||||
- uses: actions/checkout@v3
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
- uses: gradle/gradle-build-action@v2
|
||||
# gradle-build-action doesn't support caching files in the project dir
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
.gradle/loom-cache
|
||||
.gradle/caches/VanillaGradle
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-
|
||||
- name: Build
|
||||
run: ./gradlew build
|
||||
- name : Test Summary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue