Skip to content

Commit 9496213

Browse files
authored
Merge pull request #141 from AdaWorldAPI/claude/unblock-pr139-i686-and-nostd
Doctest fixes (from #139) + unblock i686 cross-tests + thumbv6m nostd build
2 parents 1bff045 + 59e56ce commit 9496213

23 files changed

Lines changed: 391 additions & 2697 deletions

.github/workflows/ci.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,18 @@ jobs:
101101
with:
102102
toolchain: ${{ matrix.rust }}
103103
targets: ${{ matrix.target }}
104+
# rust-toolchain.toml pins 1.94.1 — install the cross-compile target
105+
# for that toolchain too, since dtolnay/rust-toolchain only installs
106+
# for the matrix value which may differ from the pinned version.
107+
- run: rustup target add ${{ matrix.target }}
104108
- name: Tests
105109
run: |
106-
cargo rustc "--target=${{ matrix.target }}" --no-default-features --features portable-atomic-critical-section
110+
# Scope to `-p ndarray` so workspace dev-deps (criterion → serde_core
111+
# → getrandom) don't get evaluated against the no_std target. The
112+
# library itself builds cleanly under no_std + portable-atomic-
113+
# critical-section; only its dev-dependency tree pulls std-requiring
114+
# crates that have no business existing in the nostd build.
115+
cargo rustc -p ndarray "--target=${{ matrix.target }}" --no-default-features --features portable-atomic-critical-section
107116
108117
tests:
109118
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)