mirror of
https://github.com/fluencelabs/aquavm
synced 2025-03-15 20:40:50 +00:00
chore: Save cache in cargo snapshot workflow (#658)
* Save cache in cargo snapshot workflow * Run on builder * Typo
This commit is contained in:
parent
ee3c8076db
commit
cb156acae4
@ -37,10 +37,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
cache-directories: ~/.cache/sccache
|
cache-directories: ~/.cache/sccache
|
||||||
shared-key: aquavm
|
shared-key: aquavm
|
||||||
# github allows only 10GB of cache
|
save-if: false
|
||||||
# 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
|
- name: Setup sccache
|
||||||
uses: mozilla-actions/sccache-action@v0.0.3
|
uses: mozilla-actions/sccache-action@v0.0.3
|
||||||
|
7
.github/workflows/snapshot-cargo.yml
vendored
7
.github/workflows/snapshot-cargo.yml
vendored
@ -19,7 +19,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
snapshots:
|
snapshots:
|
||||||
name: "Publish crates"
|
name: "Publish crates"
|
||||||
runs-on: ubuntu-latest
|
runs-on: builder
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@ -61,7 +61,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
cache-directories: ~/.cache/sccache
|
cache-directories: ~/.cache/sccache
|
||||||
shared-key: aquavm
|
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
|
- name: Setup sccache
|
||||||
uses: mozilla-actions/sccache-action@v0.0.3
|
uses: mozilla-actions/sccache-action@v0.0.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user