Skip to content

Commit

Permalink
Switch to rust-toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Pi-Cla committed May 4, 2024
1 parent 2859368 commit 4213283
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 27 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,10 @@ jobs:
if: ${{ matrix.target == 'x86_64-unknown-linux-musl'}}

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
default: true
profile: minimal

- name: Install Erlang (non-macos)
uses: erlef/setup-beam@v1
Expand Down Expand Up @@ -237,12 +234,10 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true

- uses: actions/setup-node@v4
with:
Expand All @@ -264,12 +259,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
override: true
default: true
profile: minimal
components: rustfmt

- run: cargo fmt --all -- --check
Expand All @@ -283,12 +275,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
override: true
default: true
profile: minimal

- name: Install cargo-deny
run: |
Expand All @@ -309,12 +298,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
override: true
default: true
profile: minimal
components: clippy

- name: Handle Rust dependencies caching
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/release-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,12 @@ jobs:
./bin/add-nightly-suffix-to-versions.sh
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
default: true
profile: minimal



- name: Handle Rust dependencies caching
uses: Swatinem/rust-cache@v2
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,10 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
default: true
profile: minimal

- name: Handle Rust dependencies caching
uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit 4213283

Please sign in to comment.