obsidian-export/.github/actions/cargo-binstall/action.yaml
Nick Groenen b216ac63aa
Refactor CI pipelines
Various semi-related changes to the GHA setup to maximize code-reuse and
cache effectiveness, as well as introduce rust-toolchain.toml and cargo
deny.
2024-08-02 18:28:51 +02:00

19 lines
615 B
YAML

name: Install cargo binaries
description: Install cargo binaries using cargo-binstall
inputs:
binstall:
description: "Programs to install with binstall"
required: true
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
- name: Install cargo bins
shell: bash
run: >
cargo-binstall --no-confirm --min-tls-version 1.3 ${{ inputs.binstall }}