Skip to content

Commit

Permalink
use cargo-binstall
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Nov 29, 2024
1 parent 356e592 commit 6747f45
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,24 +120,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: taiki-e/install-action@cargo-hack

- name: Download cargo-msrv
uses: robinraju/release-downloader@v1
- uses: taiki-e/install-action@v2
with:
repository: foresterre/cargo-msrv
latest: true
fileName: "cargo-msrv-x86_64-${{ matrix.param.system }}-v*.tgz"
tool: cargo-hack,cargo-binstall

- name: Install cargo-msrv
run: |
find . -name 'cargo-msrv-x86_64*.tgz' -exec mv {} cargo-msrv.tgz \;
# using `tar -t | grep` because, `tar` on macos doesn't support `--wildcards`
tar -tf cargo-msrv.tgz \
| grep '/cargo-msrv' \
| head -n1 \
| xargs -n1 tar -xzf cargo-msrv.tgz -C ~/.cargo/bin --strip-components=1
cargo msrv --version
run: cargo binstall --no-confirm cargo-msrv

- name: Verify and Test Rust version
run: |
Expand Down

0 comments on commit 6747f45

Please sign in to comment.