Skip to content

Commit 6c5a65b

Browse files
committed
Stop explicitly naming CI steps
1 parent 7d3f7ec commit 6c5a65b

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,40 +14,30 @@ jobs:
1414
matrix:
1515
rust: [1.8.0, 1.15.0, 1.20.0, 1.26.0, 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 --no-default-features --features i128
33+
- run: cargo build --target thumbv6m-none-eabi --no-default-features --features i128
4134

4235
fmt:
4336
name: Format
4437
runs-on: ubuntu-latest
4538
steps:
46-
- name: Rust install
47-
uses: dtolnay/[email protected]
39+
- uses: actions/checkout@v3
40+
- uses: dtolnay/[email protected]
4841
with:
4942
components: rustfmt
50-
- name: Checkout
51-
uses: actions/checkout@v3
52-
- name: Check formatting
53-
run: cargo fmt --all --check
43+
- 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.8.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.8.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)