Skip to content

Commit f78d455

Browse files
committed
chore: update github actions
1 parent 16e68d8 commit f78d455

File tree

1 file changed

+19
-41
lines changed

1 file changed

+19
-41
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,26 @@ jobs:
2323
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2424

2525
- name: Install Rust Toolchain
26-
uses: actions-rs/toolchain@v1
26+
uses: dtolnay/rust-toolchain@master
2727
with:
28-
profile: minimal
2928
toolchain: ${{ matrix.toolchain }}
30-
override: true
3129
components: rustfmt, clippy
3230

3331
- name: Check Code Format
34-
uses: actions-rs/cargo@v1
35-
with:
36-
command: fmt
37-
args: --all -- --check
32+
run: cargo fmt --all -- --check
33+
shell: bash
3834

3935
- name: Code Lint
40-
uses: actions-rs/cargo@v1
41-
with:
42-
command: clippy
43-
args: --all-targets --all-features --workspace -- -D warnings
36+
run: cargo clippy --all-targets --all-features --workspace -- -D warnings
37+
shell: bash
4438

4539
- name: Code Lint Without Default Features
46-
uses: actions-rs/cargo@v1
47-
with:
48-
command: clippy
49-
args: --no-default-features --workspace -- -D warnings
40+
run: cargo clippy --no-default-features --workspace -- -D warnings
41+
shell: bash
5042

5143
- name: Test
52-
uses: actions-rs/cargo@v1
53-
with:
54-
command: test
55-
args: --all-features --workspace
44+
run: cargo test --all-features --workspace
45+
shell: bash
5646

5747
build-no-std:
5848
name: Build no_std
@@ -62,18 +52,13 @@ jobs:
6252
uses: actions/checkout@v3
6353

6454
- name: Install Rust Toolchain
65-
uses: actions-rs/toolchain@v1
55+
uses: dtolnay/rust-toolchain@stable
6656
with:
67-
profile: minimal
68-
toolchain: stable
69-
override: true
70-
target: thumbv6m-none-eabi
57+
targets: thumbv6m-none-eabi
7158

7259
- name: Build
73-
uses: actions-rs/cargo@v1
74-
with:
75-
command: build
76-
args: --no-default-features --workspace --target thumbv6m-none-eabi
60+
run: cargo build --no-default-features --workspace --target thumbv6m-none-eabi
61+
shell: bash
7762

7863
msrv:
7964
name: MSRV
@@ -87,7 +72,7 @@ jobs:
8772
MSRV=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "multihash") | .rust_version')
8873
echo "MSRV=$MSRV" >> $GITHUB_ENV
8974
90-
- uses: dtolnay/rust-toolchain@v1
75+
- uses: dtolnay/rust-toolchain@master
9176
with:
9277
toolchain: ${{ env.MSRV }}
9378

@@ -119,22 +104,15 @@ jobs:
119104
uses: actions/checkout@v3
120105

121106
- name: Install Rust Toolchain
122-
uses: actions-rs/toolchain@v1
123-
with:
124-
profile: minimal
125-
toolchain: stable
107+
uses: dtolnay/rust-toolchain@stable
126108

127109
- name: Install cargo-deny
128-
uses: actions-rs/cargo@v1
129-
with:
130-
command: install
131-
args: cargo-deny
110+
run: cargo install cargo-deny
111+
shell: bash
132112

133113
- name: Cargo Deny - Check
134-
uses: actions-rs/cargo@v1
135-
with:
136-
command: deny
137-
args: check
114+
run: cargo deny check
115+
shell: bash
138116

139117
semver-checks:
140118
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)