Skip to content

Commit

Permalink
ci: dont restore partial caches
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed Jun 7, 2022
1 parent 9b7970f commit 7ba160f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ jobs:
with:
python-version: 3.8
- name: Cache PIP packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('.github/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install python deps
run: |
python -m pip install --upgrade pip
Expand All @@ -97,14 +95,12 @@ jobs:
java-version: '8'

- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/*.properties', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
key: ${{ runner.os }}-gradle2-${{ hashFiles('**/build.gradle', '**/build.properties', '**/gradle-wrapper.properties') }}

- name: Build
run: ./gradlew build
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/verify-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@ jobs:
java-version: '8'

- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/*.properties', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
key: ${{ runner.os }}-gradle2-${{ hashFiles('**/build.gradle', '**/build.properties', '**/gradle-wrapper.properties') }}

- name: Build with Gradle
run: ./gradlew build # TODO test
Expand Down

0 comments on commit 7ba160f

Please sign in to comment.