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" using: "composite"
steps: steps:
- name: Install cargo-binstall - name: Install cargo-binstall
shell: bash uses: cargo-bins/cargo-binstall@main
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
- name: Install cargo bins - name: Install cargo bins
shell: bash shell: bash
run: > run: >
cargo-binstall --no-confirm --min-tls-version 1.3 ${{ inputs.binstall }} cargo-binstall --no-confirm --min-tls-version 1.3 --force ${{ inputs.binstall }}