From 65d0d5e646855c7032a43f6bf078ddce6816a64e Mon Sep 17 00:00:00 2001 From: Max Murphy Date: Thu, 1 Aug 2024 03:01:58 +0200 Subject: [PATCH] Faster: Use binstall --- .github/workflows/formatting-checks.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/formatting-checks.yml b/.github/workflows/formatting-checks.yml index 42802f57a1..31b3655dc2 100644 --- a/.github/workflows/formatting-checks.yml +++ b/.github/workflows/formatting-checks.yml @@ -24,8 +24,14 @@ jobs: - uses: actions/checkout@v4 - name: Install shfmt run: sudo snap install --classic shfmt + - name: Install binstall + run: | + BINSTALL_VERSION="1.8.0" + curl -L --proto '=https' --tlsv1.2 -sSf "https://github.com/cargo-bins/cargo-binstall/releases/download/v${BINSTALL_VERSION}/cargo-binstall-x86_64-unknown-linux-musl.tgz" | tar -xvzf - cargo-binstall + ./cargo-binstall -y --force "cargo-binstall@$BINSTALL_VERSION" + rm cargo-binstall - name: Install cargo dependency sorter - run: cargo install cargo-sort@1.0.9 + run: cargo binstall cargo-sort@1.0.9 - name: Format run: ./scripts/format.sh - name: Check formatted