Skip to content

Commit 40456f5

Browse files
authored
CI: Use cargo-binstall for pre-compiled binary installation (#11472)
1 parent 8f3acb4 commit 40456f5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- master
8+
- binstall
89

910
pull_request:
1011

@@ -16,6 +17,8 @@ concurrency:
1617

1718
env:
1819
CARGO_TERM_COLOR: always
20+
# renovate: datasource=github-releases depName=cargo-bins/cargo-binstall
21+
BINSTALL_VERSION: 1.14.1
1922
# renovate: datasource=crate depName=cargo-deny versioning=semver
2023
CARGO_DENY_VERSION: 0.18.3
2124
# renovate: datasource=crate depName=cargo-machete versioning=semver
@@ -141,10 +144,12 @@ jobs:
141144
with:
142145
save-if: ${{ github.ref == 'refs/heads/main' }}
143146

144-
- run: cargo install cargo-deny --vers ${CARGO_DENY_VERSION}
147+
- run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/v${BINSTALL_VERSION}/install-from-binstall-release.sh | bash
148+
149+
- run: cargo binstall cargo-deny@${CARGO_DENY_VERSION}
145150
- run: cargo deny check
146151

147-
- run: cargo install cargo-machete --vers ${CARGO_MACHETE_VERSION}
152+
- run: cargo binstall cargo-machete@${CARGO_MACHETE_VERSION}
148153
- run: cargo machete
149154

150155
backend-test:

0 commit comments

Comments
 (0)