Skip to content

Commit

Permalink
Faster: Use binstall
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Aug 1, 2024
1 parent 054bc7d commit 65d0d5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/formatting-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65d0d5e

Please sign in to comment.