Skip to content

Commit 36fc010

Browse files
ci: add thumbv6m-none-eabi target to ensure_no_std step (#616)
1 parent afe9e40 commit 36fc010

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,17 @@ jobs:
6161
ensure_no_std:
6262
name: Ensure no_std
6363
runs-on: ubuntu-latest
64+
strategy:
65+
matrix:
66+
target: [thumbv7em-none-eabihf, thumbv6m-none-eabi]
6467
steps:
6568
- uses: actions/checkout@v4
6669
- uses: dtolnay/rust-toolchain@master
6770
with:
6871
toolchain: nightly
69-
targets: thumbv7em-none-eabihf
70-
- run: cd ensure_no_std && cargo build --release --target thumbv7em-none-eabihf
71-
- run: cd ensure_no_std && cargo build --release --target thumbv7em-none-eabihf --no-default-features
72+
targets: ${{ matrix.target }}
73+
- run: cd ensure_no_std && cargo build --release --target ${{ matrix.target }}
74+
- run: cd ensure_no_std && cargo build --release --target ${{ matrix.target }} --no-default-features
7275

7376
ensure_wasm:
7477
name: Ensure wasm

src/impls/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mod unit;
1010
#[cfg(feature = "alloc")]
1111
mod vec;
1212

13-
#[cfg(feature = "alloc")]
13+
#[cfg(all(feature = "alloc", target_has_atomic = "ptr"))]
1414
mod arc;
1515

1616
#[cfg(feature = "alloc")]

0 commit comments

Comments
 (0)