Skip to content

Commit

Permalink
binstall
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Jul 16, 2024
1 parent 0a80d22 commit 6a7c637
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
with:
components: rustfmt, clippy

- uses: cargo-bins/cargo-binstall@main

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

Expand All @@ -43,7 +45,7 @@ jobs:
run: cargo audit --ignore RUSTSEC-2023-0071

- name: Install cargo-machete
run: cargo install cargo-machete --locked
run: cargo binstall cargo-machete

- name: Unused dependencies
run: cargo machete
Expand Down Expand Up @@ -71,11 +73,13 @@ jobs:
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

- uses: cargo-bins/cargo-binstall@main

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin --locked
run: cargo binstall cargo-tarpaulin

- name: Tests
run: cargo tarpaulin --workspace --all-features --release --out lcov
Expand All @@ -101,6 +105,8 @@ jobs:
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

- uses: cargo-bins/cargo-binstall@main

- name: Build
run: cargo build --release

Expand All @@ -111,7 +117,7 @@ jobs:
path: ./target/package/*-*.crate

- name: Install wasm-pack
run: cargo install wasm-pack --locked
run: cargo binstall wasm-pack

- name: Build and pack wasm
run: |
Expand All @@ -126,7 +132,7 @@ jobs:
path: ./wasm/pkg/*-*.tgz

- name: Install cargo-workspaces
run: cargo install cargo-workspaces --locked
run: cargo binstall cargo-workspaces

- name: Publish to crates.io if tagged
if: startsWith(github.event.ref, 'refs/tags')
Expand Down

0 comments on commit 6a7c637

Please sign in to comment.