@@ -33,38 +33,36 @@ jobs:
33
33
- name : cargo xtask fmt
34
34
run : cargo xtask --verbose fmt -c
35
35
36
- # Compilation check (lm3s6965)
37
- checklm3s6965 :
36
+ # Compilation check
37
+ # TODO: check hifive1, esp32-c3
38
+ check :
38
39
name : check (lm3s6965)
39
40
runs-on : ubuntu-22.04
40
41
strategy :
41
42
matrix :
42
- backend :
43
- - thumbv7
44
- - thumbv6
45
- - thumbv8-base
46
- - thumbv8-main
47
- toolchain :
48
- - stable
43
+ input :
44
+ - backend : thumbv7
45
+ rustup-target : thumbv7m-none-eabi
46
+
47
+ - backend : thumbv6
48
+ rustup-target : thumbv6m-none-eabi
49
+
50
+ - backend : thumbv8-base
51
+ rustup-target : thumbv8m.base-none-eabi
52
+
53
+ - backend : thumbv8-main
54
+ rustup-target : thumbv8m.main-none-eabi
49
55
steps :
50
56
- name : Checkout
51
57
uses : actions/checkout@v4
52
58
53
- - name : Install Rust ${{ matrix.toolchain }}
54
- run : |
55
- rustup override set ${{ matrix.toolchain }}
56
-
57
59
- name : Configure Rust target (v6, v7, v8.b v8.m)
58
- run : |
59
- rustup target add thumbv7m-none-eabi
60
- rustup target add thumbv6m-none-eabi
61
- rustup target add thumbv8m.base-none-eabi
62
- rustup target add thumbv8m.main-none-eabi
60
+ run : rustup target add ${{ matrix.input.rustup-target }}
63
61
64
62
- name : Cache Dependencies
65
63
uses : Swatinem/rust-cache@v2
66
64
67
- - run : cargo xtask --deny-warnings --platform lm3s6965 --backend ${{ matrix.backend }} check
65
+ - run : cargo xtask --deny-warnings --platform lm3s6965 --backend ${{ matrix.input. backend }} check
68
66
69
67
# Compilation check (hifive1) TODO
70
68
# checkhifive1:
@@ -743,8 +741,7 @@ jobs:
743
741
if : github.event_name == 'push' && success()
744
742
needs :
745
743
- formatcheck
746
- - checklm3s6965
747
- # - checkhifive1 # TODO
744
+ - check
748
745
- clippy
749
746
- checkexamples
750
747
- testexamples
0 commit comments