Use cargo-bins/cargo-binstall action instead of manual download

This commit is contained in:
Nick Groenen 2024-08-03 11:57:41 +02:00
parent e47d06e627
commit fc0221e5db
No known key found for this signature in database
GPG Key ID: 4F0AD019928AE098

View File

@ -8,11 +8,9 @@ runs:
using: "composite"
steps:
- name: Install cargo-binstall
shell: bash
run: >
curl -L --proto '=https' --tlsv1.3 -sSf https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz | sudo tar -xzv -C /usr/bin
uses: cargo-bins/cargo-binstall@main
- name: Install cargo bins
shell: bash
run: >
cargo-binstall --no-confirm --min-tls-version 1.3 ${{ inputs.binstall }}
cargo-binstall --no-confirm --min-tls-version 1.3 --force ${{ inputs.binstall }}