mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-16 05:26:49 +01:00
build: cache gradle based on java version
This commit is contained in:
parent
66b1c30fa0
commit
3b31189222
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -15,6 +15,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test-with-Java-8-and-later:
|
build-and-test-with-Java-8-and-later:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
name: Build/Test (JDK ${{ matrix.java }}, ${{ matrix.os }})
|
name: Build/Test (JDK ${{ matrix.java }}, ${{ matrix.os }})
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -22,24 +23,27 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||||
java: [8, 9, 10, 11, 12, 13, 14]
|
java: [8, 9, 10, 11, 12, 13, 14]
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
~/.gradle/wrapper
|
~/.gradle/wrapper
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
key: ${{ runner.os }}-gradle-${{ matrix.java }}-${{ hashFiles('**/*.gradle*') }}
|
||||||
restore-keys: |
|
restore-keys: ${{ runner.os }}-${{ matrix.java }}-gradle-
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up JDK ${{ matrix.java }}
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
|
|
||||||
- name: Build and test
|
- name: Build and test
|
||||||
run: ./gradlew.bat build shadowJar proguard
|
|
||||||
if: startsWith(matrix.os, 'windows') == true
|
if: startsWith(matrix.os, 'windows') == true
|
||||||
|
run: ./gradlew.bat build shadowJar proguard
|
||||||
|
|
||||||
- name: Build and test
|
- name: Build and test
|
||||||
run: ./gradlew build shadowJar proguard
|
|
||||||
if: startsWith(matrix.os, 'windows') != true
|
if: startsWith(matrix.os, 'windows') != true
|
||||||
|
run: ./gradlew build shadowJar proguard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user