Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to dtolnay/rust-toolchain #352

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ jobs:
python -m pip install --upgrade pip

- name: Set up rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: setup venv
run: |
Expand Down Expand Up @@ -85,9 +83,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Set up rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: setup venv
run: |
Expand Down Expand Up @@ -128,9 +124,7 @@ jobs:
fetch-depth: 1

- name: Set up rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: cargo bench
run: |
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build-crate-and-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ jobs:
fetch-depth: 0

- name: Set up rusts
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy

- name: Set up rust (nightly)
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: rustfmt, clippy

- name: fmt (nightly)
Expand Down
25 changes: 10 additions & 15 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ jobs:
python -m pip install --upgrade pip

- name: Set up rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: Install dependencies
run: |
Expand Down Expand Up @@ -282,12 +280,13 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: rustfmt, clippy
override: true
run: rustup override set nightly
arvidn marked this conversation as resolved.
Show resolved Hide resolved

- name: fmt
run: |
cargo fmt --all -- --files-with-diff --check
Expand All @@ -298,11 +297,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: clippy
override: true
run: rustup override set nightly
arvidn marked this conversation as resolved.
Show resolved Hide resolved

- name: workspace
run: |
cargo clippy --workspace --all-features -- -Dwarnings
Expand All @@ -317,9 +316,7 @@ jobs:
CARGO_PROFILE_RELEASE_LTO: false
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- uses: dtolnay/rust-toolchain@nightly
- name: cargo-fuzz
run: cargo +nightly install cargo-fuzz
- name: cargo fuzz (chia_rs)
Expand Down Expand Up @@ -365,9 +362,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: dtolnay/rust-toolchain@stable
- name: Prepare for coverage
if: matrix.os == 'ubuntu-latest'
run: |
Expand Down
Loading