Skip to content

Commit

Permalink
chore(ci): replace unmaintained actions-rs/toolchain action
Browse files Browse the repository at this point in the history
The actions-rs GitHub org as a whole is unmaintained, and actions
from this org will start failing in July 2023. This PR replaces
the actions-rs/toolchain action with dtolnay/rust-toolchain, which
is actively maintained.
  • Loading branch information
oliviacrain authored and seanmonstar committed Dec 22, 2022
1 parent 9dcbf04 commit 984760f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 42 deletions.
44 changes: 8 additions & 36 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ jobs:
uses: actions/checkout@v3

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

- name: cargo fmt --check
Expand Down Expand Up @@ -79,11 +76,9 @@ jobs:
uses: actions/checkout@v3

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

- name: Test
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -116,11 +111,9 @@ jobs:
uses: actions/checkout@v3

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

- name: Check
uses: actions-rs/cargo@v1
Expand All @@ -138,12 +131,9 @@ jobs:
uses: actions/checkout@v3

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

- name: Test
# Can't enable tcp feature since Miri does not support the tokio runtime
Expand All @@ -158,11 +148,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Install cargo-hack
run: cargo install cargo-hack
Expand All @@ -179,11 +165,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Install cbindgen
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -218,13 +200,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Install cbindgen
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -252,11 +228,7 @@ jobs:
uses: actions/checkout@v3

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

- name: cargo doc
uses: actions-rs/cargo@v1
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,15 @@ jobs:
- uses: actions/checkout@v3

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

# Run benchmark and stores the output to a file
- name: Run benchmark
run: cargo bench --features full --bench ${{ matrix.bench }} | tee output.txt

# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ./cache
key: ${{ runner.os }}-benchmark
Expand Down

0 comments on commit 984760f

Please sign in to comment.