mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Fix target passed to install-action
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
fa20dfa273
commit
931f258d1c
1 changed files with 7 additions and 3 deletions
10
.github/actions/just-setup/action.yml
vendored
10
.github/actions/just-setup/action.yml
vendored
|
@ -50,14 +50,18 @@ runs:
|
||||||
run: echo "tools=$tools,$inputs_tools" >>"$GITHUB_ENV"
|
run: echo "tools=$tools,$inputs_tools" >>"$GITHUB_ENV"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Install rust toolchains for local
|
- name: Determine native target:
|
||||||
run: rustup toolchain install stable --no-self-update --profile minimal
|
run: |
|
||||||
shell: bash
|
if [ "$RUNNER_OS" = "Linux" ]; then RUNNER_TARGET=x86_64-unknown-linux-gnu; fi
|
||||||
|
if [ "$RUNNER_OS" = "macOS" ]; then RUNNER_TARGET=aarch64-apple-darwin; fi
|
||||||
|
if [ "$RUNNER_OS" = "Windows" ]; then RUNNER_TARGET=x86_64-pc-windows-msvc; fi
|
||||||
|
echo "RUNNER_TARGET=$RUNNER_TARGET" >>"$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
uses: taiki-e/install-action@v2
|
uses: taiki-e/install-action@v2
|
||||||
with:
|
with:
|
||||||
tool: ${{ env.tools }}
|
tool: ${{ env.tools }}
|
||||||
|
CARGO_BUILD_TARGET: ${{ env.RUNNER_TARGET }}
|
||||||
|
|
||||||
- name: Install rust toolchains
|
- name: Install rust toolchains
|
||||||
run: just toolchain
|
run: just toolchain
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue