File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Added
11
+
12
+ * Install rustup if not available in the CI environment. (Linux only)
13
+ The code is taken from this issue: < https://github.com/dtolnay/rust-toolchain/pull/8 >
14
+
10
15
## [ 1.0.1] - 2022-04-20
11
16
12
17
### Added
Original file line number Diff line number Diff line change 47
47
targets : ${{inputs.target}}
48
48
components : ${{inputs.components}}
49
49
shell : bash
50
+ - name : Install rustup, if needed
51
+ run : |
52
+ if ! command -v rustup &> /dev/null ; then
53
+ curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
54
+ echo "${CARGO_HOME:-~/.cargo}/bin" >> $GITHUB_PATH
55
+ fi
56
+ if : runner.os != 'Windows'
57
+ shell : bash
50
58
- name : rustup toolchain install ${{inputs.toolchain}}
51
59
run : |
52
60
rustup toolchain install ${{inputs.toolchain}}${{steps.flags.outputs.targets}}${{steps.flags.outputs.components}} --profile minimal${{steps.flags.outputs.downgrade}} --no-self-update
You can’t perform that action at this time.
0 commit comments