Skip to content

Commit 0820bdb

Browse files
ci: use locked dependencies
1 parent 851e131 commit 0820bdb

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: cargo fmt --all --check
3232

3333
- name: Lint
34-
run: cargo clippy --all-features
34+
run: cargo clippy --all-features --locked
3535

3636
test:
3737
name: Test
@@ -68,7 +68,7 @@ jobs:
6868

6969
# TODO: See comment above about nightly toolchain.
7070
- name: Test
71-
run: cargo +nightly test --all-features
71+
run: cargo +nightly test --all-features --locked --release
7272

7373
- name: Upload visual snapshot diffs
7474
uses: actions/upload-artifact@v4

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,10 @@ jobs:
3232
uses: actions/checkout@v5
3333

3434
- name: Set up Rust toolchain
35-
run: rustup toolchain install nightly --no-self-update --profile default --target wasm32-unknown-unknown
36-
37-
- name: Set up Rust cache
38-
uses: swatinem/rust-cache@v2
35+
uses: actions-rust-lang/setup-rust-toolchain@v1
3936
with:
40-
cache-on-failure: true
41-
save-if: ${{ github.ref == 'refs/heads/main' }}
37+
components: clippy, rustfmt
38+
target: wasm32-unknown-unknown
4239

4340
- name: Install Cargo Binary Install
4441
uses: cargo-bins/cargo-binstall@main

0 commit comments

Comments
 (0)