From 08934cd939ac8f12cdee5cdb16db519a4856c6e4 Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Thu, 21 Jul 2022 21:26:47 +0000 Subject: [PATCH] Add test for toolchain file support --- .github/workflows/ci.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4638157..fe8c2c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,28 @@ jobs: strategy: fail-fast: false matrix: - rust: [nightly, beta, stable] + rust: [ + # Test with toolchain file override + "1.50", + "nightly", + "beta", + "stable", + ] steps: - uses: actions/checkout@v3 + # Test toolchain file support + - name: Write rust-toolchain.toml + run: | + cat <>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: ./ name: Run actions-rust-lang/setup-rust-toolchain ${{matrix.rust}} id: toolchain