Skip to content

Commit

Permalink
ci: update checked rust-toolchain version
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jan 11, 2024
1 parent c7e1de2 commit 0348027
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: CI

on:
Expand All @@ -8,43 +7,44 @@ on:

jobs:
install:
name: Rust ${{matrix.rust}} ${{matrix.os}}
name: Rust ${{matrix.rust || '(toolchain file)'}} ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
rust: [
rust:
# Test with toolchain file override
"1.60",
- null

# Test that the sparse registry check works.
# 1.66 and 1.67 don't support stable sparse registry.
"1.66",
"nightly",
"beta",
"stable",
]
os: [
"ubuntu-latest",
"windows-latest",
"macos-latest",
]
- "1.66"

- "nightly"
- "beta"
- "stable"
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- uses: actions/checkout@v4

# Test toolchain file support
- name: Write rust-toolchain.toml
run: |
cat <<EOF >>rust-toolchain.toml
[toolchain]
channel = "nightly-2022-09-10"
channel = "nightly-2024-01-11"
components = [ "rustfmt", "rustc-dev" ]
targets = [ "wasm32-unknown-unknown", "thumbv7m-none-eabi" ]
profile = "minimal"
EOF
shell: bash
if: matrix.rust == '1.60'
if: matrix.rust == null

- uses: ./
name: Run actions-rust-lang/setup-rust-toolchain ${{matrix.rust}}
name: Run actions-rust-lang/setup-rust-toolchain ${{matrix.rust || 'on toolchian chain'}}
id: toolchain
with:
toolchain: ${{matrix.rust}}
Expand Down

0 comments on commit 0348027

Please sign in to comment.