Skip to content

Commit

Permalink
Add require components to toolchain install (#30)
Browse files Browse the repository at this point in the history
* Add require components to toolchain install

* Fix components input name

* Make components conditional on toolchain
  • Loading branch information
declanvk authored Jul 5, 2024
1 parent 7116a2c commit 0a7eea8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,18 @@ jobs:
uses: actions/checkout@v3

- name: Install ${{matrix.rust}} toolchain
if: matrix.rust == 'nightly'
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
components: miri rustfmt clippy

- name: Install ${{matrix.rust}} toolchain
if: matrix.rust != 'nightly'
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
components: rustfmt clippy

- name: Run full test script
run: ./scripts/full-test.sh "${{matrix.rust}}"

0 comments on commit 0a7eea8

Please sign in to comment.