Skip to content

Commit 1ef222c

Browse files
committed
Fix STM32-patched CI
1 parent f864c3e commit 1ef222c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
77

88
## [Unreleased]
99

10+
- Fix STM32-patched CI
1011
- Fix `enumeratedValues` with `isDefault` only
1112

1213
## [v0.33.4] - 2024-06-16

ci/script.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ main() {
503503
echo '[dependencies.riscv-rt]' >> $td/Cargo.toml
504504
echo 'version = "0.8.0"' >> $td/Cargo.toml
505505

506-
test_svd_for_target riscv https://raw.githubusercontent.com/riscv-rust/e310x/master/e310x.svd
506+
test_svd_for_target riscv https://raw.githubusercontent.com/riscv-rust/e310x/master/e310x/e310x.svd
507507
test_svd_for_target riscv https://raw.githubusercontent.com/riscv-rust/k210-pac/master/k210.svd
508508
test_svd_for_target riscv https://raw.githubusercontent.com/riscv-rust/fu540-pac/master/fu540.svd
509509
;;
@@ -572,6 +572,15 @@ main() {
572572
;;
573573

574574
STM32-patched)
575+
echo '[dependencies.critical-section]' >> $td/Cargo.toml
576+
echo 'version = "1.0"' >> $td/Cargo.toml
577+
echo 'optional = true' >> $td/Cargo.toml
578+
579+
echo '[features]' >> $td/Cargo.toml
580+
echo 'default = ["critical-section", "rt"]' >> $td/Cargo.toml
581+
echo 'rt = ["cortex-m-rt/device"]' >> $td/Cargo.toml
582+
echo 'atomics = []' >> $td/Cargo.toml
583+
575584
# OK
576585
test_patched_stm32 stm32f0x2
577586
test_patched_stm32 stm32f103

ci/svd2rust-regress/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@
21022102
- arch: riscv
21032103
mfgr: SiFive
21042104
chip: E310x
2105-
svd_url: https://raw.githubusercontent.com/riscv-rust/e310x/master/e310x.svd
2105+
svd_url: https://raw.githubusercontent.com/riscv-rust/e310x/master/e310x/e310x.svd
21062106
should_pass: false
21072107
run_when: never
21082108
- arch: msp430

0 commit comments

Comments
 (0)