Skip to content

Commit 3564036

Browse files
committed
Update cargo regress tool and move CI
1 parent 84f9e55 commit 3564036

File tree

9 files changed

+2794
-1999
lines changed

9 files changed

+2794
-1999
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -54,46 +54,44 @@ jobs:
5454
runs-on: ubuntu-latest
5555
needs: [check]
5656
strategy:
57+
fail-fast: false
5758
matrix:
58-
# Options are all, none, strict and const
5959
include:
60-
- { rust: stable, vendor: Atmel, options: all }
61-
- { rust: stable, vendor: Atmel, options: "" }
62-
- { rust: stable, vendor: Freescale, options: all }
63-
- { rust: stable, vendor: Freescale, options: "" }
64-
- { rust: stable, vendor: Fujitsu, options: "" }
65-
- { rust: stable, vendor: Fujitsu, options: "--atomics" }
66-
- { rust: stable, vendor: GD32, options: all }
67-
- { rust: stable, vendor: GD32, options: "" }
68-
- { rust: stable, vendor: Holtek, options: all }
69-
- { rust: stable, vendor: Holtek, options: "" }
70-
- { rust: stable, vendor: Microchip, options: "" }
71-
- { rust: stable, vendor: Microchip, options: "--atomics" }
72-
- { rust: stable, vendor: Nordic, options: all }
73-
- { rust: stable, vendor: Nordic, options: "" }
74-
- { rust: stable, vendor: Nuvoton, options: "" }
75-
- { rust: stable, vendor: Nuvoton, options: "--atomics" }
76-
- { rust: stable, vendor: NXP, options: all }
77-
- { rust: stable, vendor: NXP, options: "" }
78-
- { rust: stable, vendor: RISC-V, options: "" }
79-
- { rust: stable, vendor: RISC-V, options: "--atomics" }
80-
- { rust: stable, vendor: SiliconLabs, options: all }
60+
# TODO: There are currently no working Atmel tests...
61+
# - { rust: stable, vendor: Atmel }
62+
# - { rust: stable, vendor: Atmel, options: "-- --strict --atomics" }
63+
- { rust: stable, vendor: Freescale }
64+
- { rust: stable, vendor: Freescale, options: "-- --strict --atomics" }
65+
- { rust: stable, vendor: Fujitsu }
66+
- { rust: stable, vendor: Fujitsu, options: "-- --atomics" }
67+
- { rust: stable, vendor: Holtek }
68+
- { rust: stable, vendor: Holtek, options: "-- --strict --atomics" }
69+
- { rust: stable, vendor: Atmel }
70+
- { rust: stable, vendor: Atmel, options: "-- --strict --atomics" }
71+
- { rust: stable, vendor: Microchip }
72+
- { rust: stable, vendor: Microchip, options: "-- --atomics" }
73+
- { rust: stable, vendor: Nordic }
74+
- { rust: stable, vendor: Nordic, options: "-- --strict --atomics" }
75+
- { rust: 1.76.0, vendor: Nordic, options: "-- --strict --atomics" }
76+
- { rust: stable, vendor: Nuvoton }
77+
- { rust: stable, vendor: Nuvoton, options: "-- --atomics" }
78+
- { rust: stable, vendor: NXP }
79+
- { rust: stable, vendor: NXP, options: "-- --strict --atomics" }
80+
- { rust: stable, vendor: SiFive }
81+
- { rust: stable, vendor: SiFive, options: "-- --atomics" }
8182
- { rust: stable, vendor: SiliconLabs, options: "" }
82-
- { rust: stable, vendor: Spansion, options: "" }
83-
- { rust: stable, vendor: Spansion, options: "--atomics" }
84-
- { rust: stable, vendor: STMicro, options: "" }
85-
- { rust: stable, vendor: STMicro, options: "--atomics" }
86-
- { rust: stable, vendor: STM32-patched, options: "--strict -f enum_value::p: --max-cluster-size --atomics --atomics-feature atomics --impl-debug --impl-defmt defmt" }
87-
- { rust: stable, vendor: Toshiba, options: all }
88-
- { rust: stable, vendor: Toshiba, options: "" }
89-
# Test MSRV
90-
- { rust: 1.76.0, vendor: Nordic, options: "" }
91-
# Use nightly for architectures which don't support stable
92-
- { rust: nightly, vendor: MSP430, options: "--atomics" }
93-
- { rust: nightly, vendor: MSP430, options: "" }
94-
# Workaround for _1token0
95-
- { rust: nightly-2024-09-25, vendor: Espressif, options: "--atomics --ident-formats-theme legacy" }
96-
- { rust: nightly-2024-09-25, vendor: Espressif, options: "--ident-format register:::Reg" }
83+
- { rust: stable, vendor: SiliconLabs, options: "-- --strict --atomics" }
84+
- { rust: stable, vendor: Spansion }
85+
- { rust: stable, vendor: Spansion, options: "-- --atomics" }
86+
- { rust: stable, vendor: STMicro }
87+
- { rust: stable, vendor: STMicro, options: "-- --atomics" }
88+
- { rust: stable, vendor: STMicro, options: "-- --strict -f enum_value::p: --max-cluster-size --atomics --atomics-feature atomics --impl-debug --impl-defmt defmt" }
89+
- { rust: stable, vendor: Toshiba }
90+
- { rust: stable, vendor: Toshiba, options: "-- --strict --atomics" }
91+
- { rust: stable, vendor: TexasInstruments }
92+
- { rust: stable, vendor: TexasInstruments, options: "-- --atomics" }
93+
- { rust: stable, vendor: Espressif }
94+
- { rust: stable, vendor: Espressif, options: "-- --atomics" }
9795

9896
steps:
9997
- uses: actions/checkout@v4
@@ -109,13 +107,8 @@ jobs:
109107
run: |
110108
cargo install svd2rust --path .
111109
112-
- name: Run CI script for `${{ matrix.vendor }}` under rust `${{ matrix.rust }}` with options=`${{ matrix.options }}`
113-
env:
114-
VENDOR: ${{ matrix.vendor }}
115-
OPTIONS: ${{ matrix.options }}
116-
COMMAND: check
117-
RUST_TOOLCHAIN: ${{ matrix.rust }}
118-
run: bash ci/script.sh
110+
- name: Run regression tool
111+
run: cargo regress tests -m ${{ matrix.vendor }} ${{ matrix.options }}
119112

120113
ci-clippy:
121114
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)