Skip to content

Commit 4394deb

Browse files
committed
MAINT: Split nostd build from other builds in CI configuration
1 parent 7daaef8 commit 4394deb

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,9 @@ jobs:
2727
- rust: beta
2828
features:
2929
- rust: nightly
30-
bench: 1
30+
bench: test build benchmarks
3131
- rust: nightly
3232
features: test_low_transition_point
33-
- rust: 1.36.0
34-
target: thumbv6m-none-eabi
35-
features:
36-
- rust: stable
37-
target: thumbv6m-none-eabi
38-
features:
3933

4034
steps:
4135
- uses: actions/checkout@v2
@@ -44,16 +38,7 @@ jobs:
4438
profile: minimal
4539
toolchain: ${{ matrix.rust }}
4640
override: true
47-
- name: Add target
48-
run: rustup target add ${{ matrix.target }}
49-
if: matrix.target != ''
50-
- name: Tests (custom target)
51-
if: matrix.target != ''
52-
run: |
53-
cargo build -vv --target=${{ matrix.target }}
54-
cargo build -v -p test-nostd --target=${{ matrix.target }}
5541
- name: Tests
56-
if: matrix.target == ''
5742
run: |
5843
cargo build --verbose --features "${{ matrix.features }}"
5944
cargo doc --verbose --features "${{ matrix.features }}"
@@ -67,6 +52,29 @@ jobs:
6752
if: matrix.bench != ''
6853
run: cargo test -v --benches
6954

55+
nostd_build:
56+
runs-on: ubuntu-latest
57+
strategy:
58+
matrix:
59+
include:
60+
- rust: 1.36.0
61+
target: thumbv6m-none-eabi
62+
- rust: stable
63+
target: thumbv6m-none-eabi
64+
65+
steps:
66+
- uses: actions/checkout@v2
67+
- uses: actions-rs/toolchain@v1
68+
with:
69+
profile: minimal
70+
toolchain: ${{ matrix.rust }}
71+
override: true
72+
target: ${{ matrix.target }}
73+
- name: Tests
74+
run: |
75+
cargo build -vv --target=${{ matrix.target }}
76+
cargo build -v -p test-nostd --target=${{ matrix.target }}
77+
7078
clippy:
7179
runs-on: ubuntu-latest
7280
strategy:

0 commit comments

Comments
 (0)