Skip to content

Commit 9beade3

Browse files
committed
Stop explicitly naming CI steps
1 parent 521b881 commit 9beade3

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
@@ -14,42 +14,32 @@ jobs:
1414
matrix:
1515
rust: [1.31.0, stable, beta, nightly]
1616
steps:
17-
- name: Rust install
18-
uses: dtolnay/rust-toolchain@master
17+
- uses: actions/checkout@v3
18+
- uses: dtolnay/rust-toolchain@master
1919
with:
2020
toolchain: ${{ matrix.rust }}
21-
- name: Checkout
22-
uses: actions/checkout@v3
23-
- name: Build
24-
run: cargo build
25-
- name: Test
26-
run: ./ci/test_full.sh
21+
- run: cargo build
22+
- run: ./ci/test_full.sh
2723

2824
# try a target that doesn't have std at all
2925
no_std:
3026
name: No Std
3127
runs-on: ubuntu-latest
3228
steps:
33-
- name: Rust install
34-
uses: dtolnay/rust-toolchain@stable
29+
- uses: actions/checkout@v3
30+
- uses: dtolnay/rust-toolchain@stable
3531
with:
3632
target: thumbv6m-none-eabi
37-
- name: Checkout
38-
uses: actions/checkout@v3
39-
- name: Build
40-
run: cargo build --target thumbv6m-none-eabi --manifest-path ci/check/Cargo.toml
33+
- run: cargo build --target thumbv6m-none-eabi --manifest-path ci/check/Cargo.toml
4134
# This test crate is intentionally separate, because we need
4235
# independent features for no-std. (rust-lang/cargo#2589)
4336

4437
fmt:
4538
name: Format
4639
runs-on: ubuntu-latest
4740
steps:
48-
- name: Rust install
49-
uses: dtolnay/[email protected]
41+
- uses: actions/checkout@v3
42+
- uses: dtolnay/[email protected]
5043
with:
5144
components: rustfmt
52-
- name: Checkout
53-
uses: actions/checkout@v3
54-
- name: Check formatting
55-
run: cargo fmt --all --check
45+
- 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/[email protected]
25+
- uses: actions/checkout@v3
26+
- uses: dtolnay/[email protected]
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)