Skip to content

Commit

Permalink
Improve caching time
Browse files Browse the repository at this point in the history
  • Loading branch information
jbachorik authored Dec 1, 2024
1 parent 43f04b3 commit 51df1b1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ jobs:
- name: Cache Gradle
uses: actions/cache@v3
with:
path: ~/.gradle/caches
path: |
~/.gradle/caches/modules-2
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
run: ./gradlew build
run: ./gradlew --no-daemon build
- name: Upload dist build data
if: always()
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -93,7 +95,9 @@ jobs:
- name: Cache Gradle
uses: actions/cache@v3
with:
path: ~/.gradle/caches
path: |
~/.gradle/caches/modules-2
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
Expand All @@ -110,7 +114,7 @@ jobs:
- name: Run tests
run: |
set +x
./gradlew -Pintegration :integration-tests:test
./gradlew --no-daemon -Pintegration :integration-tests:test
- name: Integration test reports
if: always()
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -147,7 +151,9 @@ jobs:
- name: Cache Gradle
uses: actions/cache@v3
with:
path: ~/.gradle/caches
path: |
~/.gradle/caches/modules-2
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
Expand Down

0 comments on commit 51df1b1

Please sign in to comment.