Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
ci: Use github action for installing rust
Browse files Browse the repository at this point in the history
Using `actions-rs/toolchain@v1` could simplify the effort on installing
rust.

Signed-off-by: Gris Ge <cnfourt@gmail.com>
  • Loading branch information
cathay4t committed Sep 21, 2021
1 parent e1d86cb commit 3ca79e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/clippy-rustfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
- uses: actions/checkout@v2

- name: Install Rust Nightly
run: |
rustc -vV
rustup toolchain install nightly --allow-downgrade --component=clippy,rustfmt --profile=minimal
rustup default nightly
rustc -vV
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy

- name: rustfmt
run: cargo fmt --all -- --check
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ jobs:
- uses: actions/checkout@v2

- name: Install Rust Stable
run: |
rustc -vV
rustup update stable
rustup default stable
rustc -vV
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: test (netlink-sys)
run: |
Expand Down

0 comments on commit 3ca79e4

Please sign in to comment.