Skip to content

Commit 4d559f7

Browse files
committed
Stop explicitly naming CI steps
1 parent 42b3653 commit 4d559f7

File tree

3 files changed

+26
-52
lines changed

3 files changed

+26
-52
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,60 +14,45 @@ 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
# i586 presents floating point challenges for lack of SSE/SSE2
2925
i586:
3026
name: Test (i586)
3127
runs-on: ubuntu-latest
3228
steps:
33-
- name: System install
34-
run: |
29+
- run: |
3530
sudo apt-get update
3631
sudo apt-get install gcc-multilib
37-
- name: Rust install
38-
uses: dtolnay/rust-toolchain@stable
32+
- uses: actions/checkout@v3
33+
- uses: dtolnay/rust-toolchain@stable
3934
with:
4035
target: i586-unknown-linux-gnu
41-
- name: Checkout
42-
uses: actions/checkout@v3
43-
- name: Test
44-
run: cargo test --target i586-unknown-linux-gnu --all-features
36+
- run: cargo test --target i586-unknown-linux-gnu --all-features
4537

4638
# try a target that doesn't have std at all
4739
no_std:
4840
name: No Std
4941
runs-on: ubuntu-latest
5042
steps:
51-
- name: Rust install
52-
uses: dtolnay/rust-toolchain@stable
43+
- uses: actions/checkout@v3
44+
- uses: dtolnay/rust-toolchain@stable
5345
with:
5446
target: thumbv6m-none-eabi
55-
- name: Checkout
56-
uses: actions/checkout@v3
57-
- name: Build
58-
run: cargo build --target thumbv6m-none-eabi --no-default-features --features i128
59-
- name: Build (libm)
60-
run: cargo build --target thumbv6m-none-eabi --no-default-features --features libm
47+
- run: cargo build --target thumbv6m-none-eabi --no-default-features --features i128
48+
- run: cargo build --target thumbv6m-none-eabi --no-default-features --features libm
6149

6250
fmt:
6351
name: Format
6452
runs-on: ubuntu-latest
6553
steps:
66-
- name: Rust install
67-
uses: dtolnay/rust-toolchain@1.62.0
54+
- uses: actions/checkout@v3
55+
- uses: dtolnay/rust-toolchain@1.62.0
6856
with:
6957
components: rustfmt
70-
- name: Checkout
71-
uses: actions/checkout@v3
72-
- name: Check formatting
73-
run: cargo fmt --all --check
58+
- 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/rust-toolchain@1.62.0
25+
- uses: dtolnay/rust-toolchain@1.62.0
3126
with:
3227
components: rustfmt
33-
- name: Checkout
34-
uses: actions/checkout@v3
35-
- name: Check formatting
36-
run: cargo fmt --all --check
28+
- uses: actions/checkout@v3
29+
- run: cargo fmt --all --check

0 commit comments

Comments
 (0)