Compare commits
6 Commits
3be326e1b6
...
2398b6dd70
Author | SHA1 | Date |
---|---|---|
David Tolnay | 2398b6dd70 | |
David Tolnay | d8352f6b1d | |
David Tolnay | 22eb75fbe0 | |
David Tolnay | e4e1c59547 | |
David Tolnay | b004a9e513 | |
Dario Curreri | 18c33afdda |
12
action.yml
12
action.yml
|
@ -6,9 +6,6 @@ branding:
|
||||||
color: purple
|
color: purple
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
toolchain:
|
|
||||||
description: Rust toolchain specification -- see https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification
|
|
||||||
required: true
|
|
||||||
targets:
|
targets:
|
||||||
description: Comma-separated list of target triples to install for this toolchain
|
description: Comma-separated list of target triples to install for this toolchain
|
||||||
required: false
|
required: false
|
||||||
|
@ -45,7 +42,7 @@ runs:
|
||||||
echo "toolchain=$toolchain" >> $GITHUB_OUTPUT
|
echo "toolchain=$toolchain" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
toolchain: ${{inputs.toolchain}}
|
toolchain: 1.80.0
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- id: flags
|
- id: flags
|
||||||
|
@ -59,11 +56,16 @@ runs:
|
||||||
components: ${{inputs.components}}
|
components: ${{inputs.components}}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
: set $CARGO_HOME
|
||||||
|
echo CARGO_HOME=${CARGO_HOME:-${{runner.os == 'Windows' && '$USERPROFILE' || '$HOME'}}/.cargo} >> $GITHUB_ENV
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
: install rustup if needed
|
: install rustup if needed
|
||||||
if ! command -v rustup &>/dev/null; then
|
if ! command -v rustup &>/dev/null; then
|
||||||
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused --location --silent --show-error --fail "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
|
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused --location --silent --show-error --fail "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
|
||||||
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
|
echo "$CARGO_HOME/bin" >> $GITHUB_PATH
|
||||||
fi
|
fi
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in New Issue