Fetch the cargo-dist binary directly instead of using the installer (#18731)
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
env:
|
||||
CARGO_DIST_VERSION: "0.31.0"
|
||||
CARGO_DIST_CHECKSUM: "cd355dab0b4c02fb59038fef87655550021d07f45f1d82f947a34ef98560abb8"
|
||||
|
||||
jobs:
|
||||
dist-plan:
|
||||
name: "dist plan"
|
||||
@@ -15,7 +19,11 @@ jobs:
|
||||
|
||||
- name: Install dist
|
||||
shell: bash
|
||||
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.31.0/cargo-dist-installer.sh | sh"
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -LsSf "https://github.com/axodotdev/cargo-dist/releases/download/v${CARGO_DIST_VERSION}/cargo-dist-x86_64-unknown-linux-gnu.tar.xz" -o /tmp/cargo-dist.tar.xz
|
||||
echo "${CARGO_DIST_CHECKSUM} /tmp/cargo-dist.tar.xz" | sha256sum -c -
|
||||
tar -xf /tmp/cargo-dist.tar.xz -C /tmp
|
||||
install /tmp/cargo-dist-x86_64-unknown-linux-gnu/dist ~/.cargo/bin/
|
||||
|
||||
- name: Run dist plan
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user