chore: Save cache in cargo snapshot workflow (#658)

* Save cache in cargo snapshot workflow

* Run on builder

* Typo
This commit is contained in:
Anatolios Laskaris 2023-08-04 16:27:47 +03:00 committed by GitHub
parent ee3c8076db
commit cb156acae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -37,10 +37,7 @@ jobs:
with:
cache-directories: ~/.cache/sccache
shared-key: aquavm
# github allows only 10GB of cache
# so save cache only on merge to master
# to use less space and speed up CI
save-if: ${{ github.event_name == 'push' }}
save-if: false
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.3

View File

@ -19,7 +19,7 @@ on:
jobs:
snapshots:
name: "Publish crates"
runs-on: ubuntu-latest
runs-on: builder
timeout-minutes: 60
env:
@ -61,7 +61,10 @@ jobs:
with:
cache-directories: ~/.cache/sccache
shared-key: aquavm
save-if: false
# github allows only 10GB of cache
# so save cache only on merge to master
# to use less space and speed up CI
save-if: ${{ github.event_name == 'push' }}
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.3