Skip to content

Commit

Permalink
Merge pull request #366 from Chia-Network/EL.rust-action
Browse files Browse the repository at this point in the history
Stop using deprecated rust action
  • Loading branch information
arvidn authored Feb 2, 2024
2 parents da9b37a + 13a71c5 commit 094e207
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 30 deletions.
8 changes: 2 additions & 6 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: Run benchmarks
run: cargo bench
Expand All @@ -62,9 +60,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
11 changes: 1 addition & 10 deletions .github/workflows/build-crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,7 @@ jobs:
fetch-depth: 0

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

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

- name: fmt (stable)
run: cargo +stable fmt -- --files-with-diff --check
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,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 @@ -169,10 +167,8 @@ jobs:
with:
fetch-depth: 1
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Clippy
run: cargo clippy --all-targets --workspace -- -D warnings
Expand All @@ -194,10 +190,8 @@ jobs:
with:
fetch-depth: 1
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: fmt
run: |
Expand Down Expand Up @@ -230,9 +224,8 @@ jobs:
with:
fetch-depth: 1
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy

- name: build
Expand All @@ -254,9 +247,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: dtolnay/rust-toolchain@stable
- name: Run for coverage
run: |
sudo apt-get update
Expand Down

0 comments on commit 094e207

Please sign in to comment.