Skip to content

Commit bbc3ce6

Browse files
committed
Add nightly tests to every chip in CI
1 parent 9389237 commit bbc3ce6

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,29 +53,36 @@ jobs:
5353
- { rust: stable, vendor: Freescale, options: all }
5454
- { rust: stable, vendor: Freescale, options: "" }
5555
- { rust: stable, vendor: Fujitsu, options: "" }
56+
- { rust: stable, vendor: Fujitsu, options: "--nightly" }
5657
- { rust: stable, vendor: GD32, options: all }
5758
- { rust: stable, vendor: GD32, options: "" }
5859
- { rust: stable, vendor: Holtek, options: all }
5960
- { rust: stable, vendor: Holtek, options: "" }
6061
- { rust: stable, vendor: Microchip, options: "" }
62+
- { rust: stable, vendor: Microchip, options: "--nightly" }
6163
- { rust: stable, vendor: Nordic, options: all }
6264
- { rust: stable, vendor: Nordic, options: "" }
6365
- { rust: stable, vendor: Nuvoton, options: "" }
66+
- { rust: stable, vendor: Nuvoton, options: "--nightly" }
6467
- { rust: stable, vendor: NXP, options: all }
6568
- { rust: stable, vendor: NXP, options: "" }
6669
- { rust: stable, vendor: RISC-V, options: "" }
70+
- { rust: stable, vendor: RISC-V, options: "--nightly" }
6771
- { rust: stable, vendor: SiliconLabs, options: all }
6872
- { rust: stable, vendor: SiliconLabs, options: "" }
6973
- { rust: stable, vendor: Spansion, options: "" }
74+
- { rust: stable, vendor: Spansion, options: "--nightly" }
7075
- { rust: stable, vendor: STMicro, options: "" }
71-
- { rust: stable, vendor: STM32-patched, options: "--strict --const_generic --derive_more --pascal_enum_values --max_cluster_size" }
76+
- { rust: stable, vendor: STMicro, options: "--nightly" }
77+
- { rust: stable, vendor: STM32-patched, options: "--strict --const_generic --derive_more --pascal_enum_values --max_cluster_size --nightly" }
7278
- { rust: stable, vendor: Toshiba, options: all }
7379
- { rust: stable, vendor: Toshiba, options: "" }
7480
# Test MSRV
7581
- { rust: 1.60.0, vendor: Nordic, options: "" }
7682
# Use nightly for architectures which don't support stable
7783
- { rust: nightly, vendor: MSP430, options: "--nightly" }
7884
- { rust: nightly, vendor: MSP430, options: "" }
85+
- { rust: nightly, vendor: Espressif, options: "--nightly" }
7986
- { rust: nightly, vendor: Espressif, options: "" }
8087

8188
steps:

ci/script.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ main() {
3131

3232
case $OPTIONS in
3333
all)
34-
options="--const_generic --strict --derive_more"
34+
options="--const_generic --strict --derive_more --nightly"
3535
;;
3636
*)
3737
options=$OPTIONS
@@ -46,6 +46,9 @@ main() {
4646
if [[ "$options" == *"--derive_more"* ]]; then
4747
echo 'derive_more = "0.99"' >> $td/Cargo.toml
4848
fi
49+
if [[ "$options" == *"--nightly"* ]]; then
50+
echo 'portable-atomic = { version = "0.3.15", default-features = false }' >> $td/Cargo.toml
51+
fi
4952
echo '[profile.dev]' >> $td/Cargo.toml
5053
echo 'incremental = false' >> $td/Cargo.toml
5154

@@ -465,9 +468,6 @@ main() {
465468
echo '[dependencies.msp430]' >> $td/Cargo.toml
466469
echo 'version = "0.4.0"' >> $td/Cargo.toml
467470

468-
echo '[dependencies.portable-atomic]' >> $td/Cargo.toml
469-
echo 'version = "0.3.15"' >> $td/Cargo.toml
470-
471471
# Test MSP430
472472
test_svd_for_target msp430 https://raw.githubusercontent.com/pftbest/msp430g2553/v0.3.0-svd/msp430g2553.svd
473473
test_svd_for_target msp430 https://raw.githubusercontent.com/YuhanLiin/msp430fr2355/master/msp430fr2355.svd

0 commit comments

Comments
 (0)