-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using a different Rust toolchain action, because the old one is depre…
…cated.
- Loading branch information
1 parent
cbb2a97
commit e2ce440
Showing
3 changed files
with
16 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,12 +80,13 @@ jobs: | |
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/[email protected] | ||
id: toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
components: rustfmt, clippy | ||
- run: rustup override set ${{steps.toolchain.outputs.name}} | ||
- run: rustup target add ${{ matrix.target }} | ||
- run: rustup component add rustfmt clippy | ||
|
||
- name: Use Cross | ||
if: matrix.target != '' && matrix.build != 'wasm32' | ||
|
@@ -125,12 +126,10 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
override: true | ||
profile: minimal | ||
components: rustfmt | ||
id: toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- run: rustup override set ${{steps.toolchain.outputs.name}} | ||
- run: rustup component add rustfmt | ||
- name: Check formatting | ||
run: | | ||
cargo fmt --all -- --check | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,12 +118,12 @@ jobs: | |
# ci/macos-install-packages | ||
|
||
- name: Install Rust | ||
uses: actions-rs/[email protected] | ||
id: toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
profile: minimal | ||
override: true | ||
target: ${{ matrix.target }} | ||
- run: rustup override set ${{steps.toolchain.outputs.name}} | ||
- run: rustup target add ${{ matrix.target }} | ||
|
||
- name: Use Cross | ||
if: matrix.target != '' && matrix.build != 'wasm32' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,9 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/[email protected] | ||
with: | ||
profile: minimal | ||
toolchain: 1.64.0 | ||
override: true | ||
|
||
id: toolchain | ||
uses: dtolnay/[email protected] | ||
- run: rustup override set ${{steps.toolchain.outputs.name}} | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
|