File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Setup cache"
2+ description : " Setup cache"
3+
4+ inputs :
5+ key :
6+ description : " subkey of the cache"
7+ required : true
8+
9+ runs :
10+ using : " composite"
11+ steps :
12+ - name : Cache Rust toolchain
13+ uses : actions/cache@v3
14+ with :
15+ key : rust-toolchain
16+ path : |
17+ ~/.cargo
18+ ~/.rustup
Original file line number Diff line number Diff line change @@ -14,20 +14,36 @@ jobs:
1414 name : Build core
1515 runs-on : ubuntu-20.04
1616 steps :
17+ - name : Run sccache-cache
18+ uses :
mozilla-actions/[email protected] 1719 - uses : actions/checkout@v3
1820 with :
1921 submodules : ' true'
22+ - uses : ./.github/actions/setup-cache
23+ with :
24+ key : core
2025 - uses : ./.github/actions/maximize-disk-space
2126 - uses : ./.github/actions/build-core
27+ env :
28+ SCCACHE_GHA_ENABLED : " true"
29+ RUSTC_WRAPPER : " sccache"
2230 build-pruntime :
2331 name : Build pruntime
2432 runs-on : ubuntu-20.04
2533 steps :
34+ - name : Run sccache-cache
35+ uses :
mozilla-actions/[email protected] 2636 - uses : actions/checkout@v3
2737 with :
2838 submodules : ' true'
39+ - uses : ./.github/actions/setup-cache
40+ with :
41+ key : pruntime
2942 - uses : ./.github/actions/maximize-disk-space
3043 - uses : ./.github/actions/build-pruntime
44+ env :
45+ SCCACHE_GHA_ENABLED : " true"
46+ RUSTC_WRAPPER : " sccache"
3147 build-prouter :
3248 name : Build prouter
3349 runs-on : ubuntu-20.04
You can’t perform that action at this time.
0 commit comments