Skip to content

Commit dba82cb

Browse files
authored
Enable caching on all CI jobs that build the crate (#341)
1 parent 5a07879 commit dba82cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libm/.github/workflows/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
- name: Install Rust
109109
run: rustup update nightly --no-self-update && rustup default nightly
110110
- run: rustup target add wasm32-unknown-unknown
111+
- uses: Swatinem/rust-cache@v2
111112
- run: cargo build --target wasm32-unknown-unknown
112113

113114
builtins:
@@ -117,6 +118,7 @@ jobs:
117118
- uses: actions/checkout@master
118119
- name: Install Rust
119120
run: rustup update nightly --no-self-update && rustup default nightly
121+
- uses: Swatinem/rust-cache@v2
120122
- run: cargo build -p cb
121123

122124
benchmarks:
@@ -126,6 +128,7 @@ jobs:
126128
- uses: actions/checkout@master
127129
- name: Install Rust
128130
run: rustup update nightly --no-self-update && rustup default nightly
131+
- uses: Swatinem/rust-cache@v2
129132
- name: Download musl source
130133
run: ./ci/download-musl.sh
131134
- run: cargo bench --all
@@ -143,6 +146,7 @@ jobs:
143146
echo "MSRV=$msrv" >> "$GITHUB_ENV"
144147
- name: Install Rust
145148
run: rustup update "$MSRV" --no-self-update && rustup default "$MSRV"
149+
- uses: Swatinem/rust-cache@v2
146150
- run: cargo build -p libm
147151

148152
rustfmt:

0 commit comments

Comments
 (0)