mirror of
https://github.com/actions-rust-lang/setup-rust-toolchain.git
synced 2024-12-27 09:05:23 +01:00
Add test for toolchain file support
This commit is contained in:
parent
379d2bfd83
commit
08934cd939
1 changed files with 20 additions and 1 deletions
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
|
@ -13,9 +13,28 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
rust: [nightly, beta, stable]
|
rust: [
|
||||||
|
# Test with toolchain file override
|
||||||
|
"1.50",
|
||||||
|
"nightly",
|
||||||
|
"beta",
|
||||||
|
"stable",
|
||||||
|
]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
# Test toolchain file support
|
||||||
|
- name: Write rust-toolchain.toml
|
||||||
|
run: |
|
||||||
|
cat <<EOF >>rust-toolchain.toml
|
||||||
|
[toolchain]
|
||||||
|
channel = "nightly-2020-07-10"
|
||||||
|
components = [ "rustfmt", "rustc-dev" ]
|
||||||
|
targets = [ "wasm32-unknown-unknown", "thumbv2-none-eabi" ]
|
||||||
|
profile = "minimal"
|
||||||
|
EOF
|
||||||
|
shell: bash
|
||||||
|
if: matrix.rust == '1.50'
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
name: Run actions-rust-lang/setup-rust-toolchain ${{matrix.rust}}
|
name: Run actions-rust-lang/setup-rust-toolchain ${{matrix.rust}}
|
||||||
id: toolchain
|
id: toolchain
|
||||||
|
|
Loading…
Reference in a new issue