Skip to content

Commit

Permalink
chore: Use setup-rust-action v1 to setup rust in ci (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Dec 15, 2022
1 parent 797efb2 commit 77fd2a5
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ jobs:
RUSTFLAGS: "-D warnings"

steps:
- uses: hecrj/setup-rust-action@master
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
components: rustfmt
- uses: actions/checkout@v3
- name: Install rustfmt
run: rustup component add rustfmt
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Install Protoc
Expand All @@ -47,12 +46,9 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install Rust and clippy
uses: actions-rs/toolchain@v1
- uses: hecrj/setup-rust-action@v1
with:
profile: minimal
toolchain: "1.60"
override: true
rust-version: "1.60"
components: clippy
- name: Install Protoc
uses: arduino/setup-protoc@v1
Expand All @@ -75,12 +71,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
- uses: hecrj/setup-rust-action@v1
with:
profile: minimal
toolchain: "1.60"
override: true
rust-version: "1.60"
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand All @@ -101,11 +94,10 @@ jobs:
QUICKCHECK_TESTS: 1000

steps:
- uses: hecrj/setup-rust-action@master
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Install rustfmt
run: rustup component add rustfmt
components: rustfmt
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand All @@ -127,11 +119,10 @@ jobs:
RUSTFLAGS: "-D warnings"

steps:
- uses: hecrj/setup-rust-action@master
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Install rustfmt
run: rustup component add rustfmt
components: rustfmt
- uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v1
Expand Down

0 comments on commit 77fd2a5

Please sign in to comment.