Skip to content

Commit

Permalink
Replace actions-rs/toolchain with dtolnay/rust-toolchain (#436)
Browse files Browse the repository at this point in the history
`actions-rs/toolchain` doesn't seem to be maintained and we are getting
warnings about using node 12 which is deprecated
  • Loading branch information
caulagi authored Oct 10, 2023
1 parent 9bff95b commit 1115fa3
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,20 @@ jobs:
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install rustfmt, clippy
uses: actions-rs/toolchain@v1
- name: Install clippy on stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
profile: minimal
override: true
components: clippy
- run: cargo build
- run: cargo clippy --all-targets --all-features -- -D warnings
- name: Set nightly for cargo fmt
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: rustfmt
- run: cargo +nightly fmt -- --check

Expand All @@ -37,7 +33,7 @@ jobs:
if: "!contains(github.event.head_commit.message, 'e2e skip') && !contains(github.event.head_commit.message, 'skip e2e')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-go@v4
Expand Down

0 comments on commit 1115fa3

Please sign in to comment.