Add caching for workflows

This commit is contained in:
AsamK 2022-10-31 16:15:57 +01:00
parent 43a7478791
commit eec3d782d3
2 changed files with 3 additions and 0 deletions

View file

@ -17,6 +17,7 @@ jobs:
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew --no-daemon build
- name: Compress archive
@ -37,6 +38,7 @@ jobs:
with:
version: 'latest'
java-version: '17'
cache: 'gradle'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Gradle

View file

@ -179,6 +179,7 @@ jobs:
with:
distribution: 'adopt'
java-version: ${{ env.JAVA_VERSION }}
java-package: 'jre'
- name: Run signal-cli
run: |