Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit 2c5675c

Browse files
committed
ci: Cache intermediate artifacts in the build job
1 parent c876fca commit 2c5675c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,10 @@ jobs:
192192
include:
193193
- os: ubuntu-20.04
194194
target: x86_64-unknown-linux-musl
195+
extra_args: --features="dist-server"
195196
- os: ubuntu-20.04
196197
binary: sccache-dist
197-
extra_args: --no-default-features --features="dist-server"
198+
extra_args: --features="dist-server"
198199
target: x86_64-unknown-linux-musl
199200
- os: ubuntu-20.04
200201
target: aarch64-unknown-linux-musl
@@ -215,6 +216,14 @@ jobs:
215216
- name: Clone repository
216217
uses: actions/checkout@v1
217218

219+
- uses: actions/cache@v2
220+
with:
221+
path: |
222+
~/.cargo/registry
223+
~/.cargo/git
224+
target
225+
key: ${{ runner.os }}-cargo-build-v2-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
226+
218227
- name: Install rust
219228
uses: ./.github/actions/rust-toolchain
220229
with:

0 commit comments

Comments
 (0)