diff options
author | Alex <[email protected]> | 2021-10-23 14:07:37 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-23 14:07:37 +0200 |
commit | 2ec6c991523c6c1809809ea5ebca0e37d4f5bf7f (patch) | |
tree | 3ad38dda435e28819737b9219d7325db31317e81 /.github | |
parent | 9472d38f3c05a9f833cac72368cf49eb419200a1 (diff) | |
download | Paper-2ec6c991523c6c1809809ea5ebca0e37d4f5bf7f.tar.gz Paper-2ec6c991523c6c1809809ea5ebca0e37d4f5bf7f.zip |
ci: Update gh actions with caching (#6819) [ci skip]
Closes #6474
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63f28ac60f..bf6b146669 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,22 +16,13 @@ jobs: java: [16] fail-fast: true steps: - - uses: actions/checkout@v2 + - uses: actions/[email protected] - name: JDK ${{ matrix.java }} - uses: actions/setup-java@v2 + uses: actions/[email protected] with: java-version: ${{ matrix.java }} - distribution: 'adopt' - - name: Cache gradle - uses: actions/cache@v2 - with: - path: | - ~/.gradle/caches - ~/.gradle/jdks - ~/.gradle/native - ~/.gradle/wrapper - key: ${{ runner.os }}-paper-2-${{ hashFiles('**/*.gradle*', 'gradle/**', 'gradle.properties') }} - restore-keys: ${{ runner.os }}-paper-2 + cache: 'gradle' + distribution: 'temurin' - name: Patch and build run: | git config --global user.email "[email protected]" |