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

View file

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