forked from jxs/rust-libp2p
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (23 loc) · 892 Bytes
/
cache-factory.yml
File metadata and controls
30 lines (23 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This workflow _produces_ a cache that is used to speed up pull request builds.
#
# Our CI runs a job per crate, meaning all jobs share compilation artifacts but never the full cache.
# Thus, we make a single cache here that is used by all jobs and the jobs only read from this cache.
name: Cache factory
on:
push:
branches:
- master # Caches are only created on master branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
make_stable_rust_cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
with:
shared-key: stable-cache
- name: Compile workspace with stable Rust
run: cargo test --all-features --all-targets --workspace --no-run