Use the empty string to trigger toolchain file check instead of an old version

This commit is contained in:
James ‘Twey’ Kay 2023-11-01 09:44:05 +00:00
parent 5ea736b97f
commit 6ed6429951
No known key found for this signature in database
GPG key ID: 1B63E80AA5CA35C3

View file

@ -1,4 +1,3 @@
name: CI name: CI
on: on:
@ -15,7 +14,7 @@ jobs:
matrix: matrix:
rust: [ rust: [
# Test with toolchain file override # Test with toolchain file override
"1.60", "",
# Test that the sparse registry check works. # Test that the sparse registry check works.
# 1.66 and 1.67 don't support stable sparse registry. # 1.66 and 1.67 don't support stable sparse registry.
"1.66", "1.66",
@ -41,10 +40,10 @@ jobs:
profile = "minimal" profile = "minimal"
EOF EOF
shell: bash shell: bash
if: matrix.rust == '1.60' if: matrix.rust == ''
- uses: ./ - uses: ./
name: Run actions-rust-lang/setup-rust-toolchain ${{matrix.rust}} name: Run actions-rust-lang/setup-rust-toolchain ${{matrix.rust || 'on toolchain file'}}
id: toolchain id: toolchain
with: with:
toolchain: ${{matrix.rust}} toolchain: ${{matrix.rust}}