Skip to content

Commit

Permalink
Using a different Rust toolchain action, because the old one is depre…
Browse files Browse the repository at this point in the history
…cated.
  • Loading branch information
kevinswiber committed Mar 26, 2024
1 parent cbb2a97 commit e2ce440
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e2ce440

Please sign in to comment.