Add test for toolchain file support
This commit is contained in:
parent
379d2bfd83
commit
08934cd939
|
@ -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 New Issue