Skip to content

Commit 5342950

Browse files
committed
use cargo cache and matrix rust
1 parent 047847f commit 5342950

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Diff for: .github/workflows/ci.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,23 @@ jobs:
163163
check_wasm:
164164
name: Check wasm targets
165165
runs-on: ubuntu-latest
166+
strategy:
167+
matrix:
168+
rust: [nightly, beta, stable]
169+
170+
- name: Cache cargo registry
171+
uses: actions/cache@v2
172+
with:
173+
path: ~/.cargo/registry
174+
key: wasm32-${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
166175

167176
steps:
168177
- uses: actions/checkout@master
169178

170-
- name: Install nightly with wasm32-unknown-unknown
179+
- name: Install rust with wasm32-unknown-unknown
171180
uses: actions-rs/toolchain@v1
172181
with:
173-
toolchain: nightly
182+
toolchain: ${{ matrix.rust }}
174183
target: wasm32-unknown-unknown
175184
override: true
176185

0 commit comments

Comments
 (0)