Skip to content

Commit 704e9ce

Browse files
committed
add CI tests for no_std
1 parent e1860ae commit 704e9ce

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/rust.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ jobs:
1212
- stable
1313
- "1.70"
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions-rs/toolchain@v1
15+
- uses: actions/checkout@v4
16+
- uses: dtolnay/rust-toolchain@stable
1717
with:
18-
profile: minimal
1918
toolchain: ${{ matrix.rust }}
20-
override: true
21-
- uses: actions-rs/cargo@v1
22-
with:
23-
command: check
24-
args: --features "arc,tinyset"
19+
targets: x86_64-unknown-none,thumbv6m-none-eabi
20+
- run: cargo check --features "arc,tinyset"
21+
- run: cargo check --no-default-features --target x86_64-unknown-none --features serde,arena,spin,intern,alloc,deepsize
22+
- run: cargo check --no-default-features --target thumbv6m-none-eabi --features serde,arena,spin,intern,portable-atomic,critical-section
2523

2624
test:
2725
name: Test Suite
@@ -31,7 +29,7 @@ jobs:
3129
rust:
3230
- stable
3331
steps:
34-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v4
3533
- uses: actions-rs/toolchain@v1
3634
with:
3735
profile: minimal
@@ -49,7 +47,7 @@ jobs:
4947
rust:
5048
- nightly
5149
steps:
52-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v4
5351
- uses: actions-rs/toolchain@v1
5452
with:
5553
profile: minimal
@@ -70,7 +68,7 @@ jobs:
7068
rust:
7169
- "1.70"
7270
steps:
73-
- uses: actions/checkout@v2
71+
- uses: actions/checkout@v4
7472
- uses: actions-rs/toolchain@v1
7573
with:
7674
profile: minimal
@@ -86,7 +84,7 @@ jobs:
8684
rust:
8785
- nightly
8886
steps:
89-
- uses: actions/checkout@v2
87+
- uses: actions/checkout@v4
9088
- uses: actions-rs/toolchain@v1
9189
with:
9290
profile: minimal

0 commit comments

Comments
 (0)