Skip to content

Commit a4e13ee

Browse files
committed
Stop explicitly naming CI steps
1 parent 1709495 commit a4e13ee

File tree

3 files changed

+21
-42
lines changed

3 files changed

+21
-42
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,30 @@ jobs:
2020
nightly
2121
]
2222
steps:
23-
- name: Rust install
24-
uses: dtolnay/rust-toolchain@master
23+
- uses: actions/checkout@v3
24+
- uses: dtolnay/rust-toolchain@master
2525
with:
2626
toolchain: ${{ matrix.rust }}
27-
- name: Checkout
28-
uses: actions/checkout@v3
29-
- name: Build
30-
run: cargo build
31-
- name: Test
32-
run: ./ci/test_full.sh
27+
- run: cargo build
28+
- run: ./ci/test_full.sh
3329

3430
# try a target that doesn't have std at all, but does have alloc
3531
no_std:
3632
name: No Std
3733
runs-on: ubuntu-latest
3834
steps:
39-
- name: Rust install
40-
uses: dtolnay/rust-toolchain@stable
35+
- uses: actions/checkout@v3
36+
- uses: dtolnay/rust-toolchain@stable
4137
with:
4238
target: thumbv6m-none-eabi
43-
- name: Checkout
44-
uses: actions/checkout@v3
45-
- name: Build
46-
run: cargo build --target thumbv6m-none-eabi --no-default-features --features "libm rand serde"
39+
- run: cargo build --target thumbv6m-none-eabi --no-default-features --features "libm rand serde"
4740

4841
fmt:
4942
name: Format
5043
runs-on: ubuntu-latest
5144
steps:
52-
- name: Rust install
53-
uses: dtolnay/rust-toolchain@1.62.0
45+
- uses: actions/checkout@v3
46+
- uses: dtolnay/rust-toolchain@1.62.0
5447
with:
5548
components: rustfmt
56-
- name: Checkout
57-
uses: actions/checkout@v3
58-
- name: Check formatting
59-
run: cargo fmt --all --check
49+
- run: cargo fmt --all --check

.github/workflows/master.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@ jobs:
1515
matrix:
1616
rust: [1.31.0, stable]
1717
steps:
18-
- name: Rust install
19-
uses: dtolnay/rust-toolchain@master
18+
- uses: actions/checkout@v3
19+
- uses: dtolnay/rust-toolchain@master
2020
with:
2121
toolchain: ${{ matrix.rust }}
22-
- name: Checkout
23-
uses: actions/checkout@v3
24-
- name: Build
25-
run: cargo build
26-
- name: Test
27-
run: ./ci/test_full.sh
22+
- run: cargo build
23+
- run: ./ci/test_full.sh

.github/workflows/pr.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,19 @@ jobs:
1111
matrix:
1212
rust: [1.31.0, stable]
1313
steps:
14-
- name: Rust install
15-
uses: dtolnay/rust-toolchain@master
14+
- uses: actions/checkout@v3
15+
- uses: dtolnay/rust-toolchain@master
1616
with:
1717
toolchain: ${{ matrix.rust }}
18-
- name: Checkout
19-
uses: actions/checkout@v3
20-
- name: Build
21-
run: cargo build
22-
- name: Test
23-
run: ./ci/test_full.sh
18+
- run: cargo build
19+
- run: ./ci/test_full.sh
2420

2521
fmt:
2622
name: Format
2723
runs-on: ubuntu-latest
2824
steps:
29-
- name: Rust install
30-
uses: dtolnay/rust-toolchain@1.62.0
25+
- uses: actions/checkout@v3
26+
- uses: dtolnay/rust-toolchain@1.62.0
3127
with:
3228
components: rustfmt
33-
- name: Checkout
34-
uses: actions/checkout@v3
35-
- name: Check formatting
36-
run: cargo fmt --all --check
29+
- run: cargo fmt --all --check

0 commit comments

Comments
 (0)