|
4 | 4 | push:
|
5 | 5 | branches: [master]
|
6 | 6 | pull_request:
|
| 7 | + merge_group: |
7 | 8 |
|
8 | 9 | jobs:
|
9 | 10 | check:
|
@@ -38,177 +39,31 @@ jobs:
|
38 | 39 | # - stm32f334x6
|
39 | 40 | # - stm32f334x8
|
40 | 41 | steps:
|
41 |
| - - uses: actions/checkout@v2 |
42 |
| - - uses: actions-rs/toolchain@v1 |
| 42 | + - uses: actions/checkout@v4 |
| 43 | + - uses: dtolnay/rust-toolchain@stable |
43 | 44 | with:
|
44 | 45 | toolchain: stable
|
45 | 46 | target: thumbv7em-none-eabihf
|
46 |
| - override: true |
47 |
| - profile: minimal |
48 | 47 | - run: cargo build --features=${{ matrix.mcu }} --lib --examples
|
49 | 48 |
|
50 |
| - # This is our MSRV. However this is only for documentation |
51 |
| - # purposes and should be increased if newer features are used. |
52 |
| - # This should not stop anyone from bumping the MSRV. |
53 |
| - check-msrv: |
54 |
| - name: Check MSRV |
55 |
| - runs-on: ubuntu-latest |
56 |
| - steps: |
57 |
| - - uses: actions/checkout@v2 |
58 |
| - - uses: actions-rs/toolchain@v1 |
59 |
| - with: |
60 |
| - toolchain: 1.54.0 |
61 |
| - target: thumbv7em-none-eabihf |
62 |
| - override: true |
63 |
| - profile: minimal |
64 |
| - - uses: actions-rs/cargo@v1 |
65 |
| - with: |
66 |
| - command: check |
67 |
| - args: --features=stm32f303xc,stm32-usbd,rt,can,ld --lib |
68 |
| - |
69 |
| - check-min-deps: |
70 |
| - name: Check Minimal Dependency Versions |
71 |
| - runs-on: ubuntu-latest |
72 |
| - steps: |
73 |
| - - uses: actions/checkout@v2 |
74 |
| - - uses: actions-rs/toolchain@v1 |
75 |
| - with: |
76 |
| - toolchain: stable |
77 |
| - target: thumbv7em-none-eabihf |
78 |
| - override: true |
79 |
| - profile: minimal |
80 |
| - - uses: actions-rs/toolchain@v1 |
81 |
| - with: |
82 |
| - toolchain: nightly |
83 |
| - target: thumbv7em-none-eabihf |
84 |
| - profile: minimal |
85 |
| - - run: cargo +nightly update -Z minimal-versions |
86 |
| - - uses: actions-rs/cargo@v1 |
87 |
| - with: |
88 |
| - command: check |
89 |
| - args: --features=stm32f303xc,stm32-usbd,rt,can,ld --lib --examples |
90 |
| - |
91 | 49 | check-minimal-feature-set:
|
92 | 50 | name: Check minimal feature set
|
93 | 51 | runs-on: ubuntu-latest
|
94 | 52 | steps:
|
95 |
| - - uses: actions/checkout@v2 |
96 |
| - - uses: actions-rs/toolchain@v1 |
| 53 | + - uses: actions/checkout@v4 |
| 54 | + - uses: dtolnay/rust-toolchain@stable |
97 | 55 | with:
|
98 | 56 | toolchain: stable
|
99 | 57 | target: thumbv7em-none-eabihf
|
100 |
| - override: true |
101 |
| - profile: minimal |
102 |
| - - uses: actions-rs/cargo@v1 |
103 |
| - with: |
104 |
| - command: check |
105 |
| - args: --no-default-features --features=stm32f303xc --lib --examples |
| 58 | + - run: cargo check --no-default-features --features=stm32f303xc --lib --examples |
106 | 59 |
|
107 | 60 | build-testsuite:
|
108 | 61 | name: Build Testsuite
|
109 | 62 | runs-on: ubuntu-latest
|
110 | 63 | steps:
|
111 |
| - - uses: actions/checkout@v2 |
112 |
| - - uses: actions-rs/toolchain@v1 |
| 64 | + - uses: actions/checkout@v4 |
| 65 | + - uses: dtolnay/rust-toolchain@stable |
113 | 66 | with:
|
114 | 67 | toolchain: stable
|
115 | 68 | target: thumbv7em-none-eabihf
|
116 |
| - override: true |
117 |
| - profile: minimal |
118 |
| - - uses: actions-rs/cargo@v1 |
119 |
| - with: |
120 |
| - command: test |
121 |
| - args: -p testsuite --no-run |
122 |
| - |
123 |
| - check-doc: |
124 |
| - name: Check Documentation Build |
125 |
| - runs-on: ubuntu-latest |
126 |
| - steps: |
127 |
| - - uses: actions/checkout@v2 |
128 |
| - - uses: actions-rs/toolchain@v1 |
129 |
| - with: |
130 |
| - toolchain: nightly |
131 |
| - target: thumbv7em-none-eabihf |
132 |
| - override: true |
133 |
| - profile: minimal |
134 |
| - - uses: actions-rs/cargo@v1 |
135 |
| - with: |
136 |
| - command: doc |
137 |
| - args: --features=stm32f303xc |
138 |
| - |
139 |
| - clippy: |
140 |
| - name: Clippy |
141 |
| - runs-on: ubuntu-latest |
142 |
| - steps: |
143 |
| - - uses: actions/checkout@v2 |
144 |
| - - uses: actions-rs/toolchain@v1 |
145 |
| - with: |
146 |
| - toolchain: stable |
147 |
| - target: thumbv7em-none-eabihf |
148 |
| - override: true |
149 |
| - profile: minimal |
150 |
| - components: clippy |
151 |
| - - uses: actions-rs/clippy-check@v1 |
152 |
| - with: |
153 |
| - token: ${{ secrets.GITHUB_TOKEN }} |
154 |
| - args: > |
155 |
| - --features=stm32f303xc --lib --examples |
156 |
| - -- -D warnings |
157 |
| -
|
158 |
| - rustfmt: |
159 |
| - name: Rustfmt |
160 |
| - runs-on: ubuntu-latest |
161 |
| - steps: |
162 |
| - - uses: actions/checkout@v2 |
163 |
| - - uses: actions-rs/toolchain@v1 |
164 |
| - with: |
165 |
| - toolchain: stable |
166 |
| - override: true |
167 |
| - profile: minimal |
168 |
| - components: rustfmt |
169 |
| - - uses: actions-rs/cargo@v1 |
170 |
| - with: |
171 |
| - command: fmt |
172 |
| - args: --all -- --check |
173 |
| - |
174 |
| - codegen: |
175 |
| - name: Check Codegen |
176 |
| - runs-on: ubuntu-latest |
177 |
| - steps: |
178 |
| - - uses: actions/checkout@v2 |
179 |
| - - uses: actions-rs/toolchain@v1 |
180 |
| - with: |
181 |
| - toolchain: stable |
182 |
| - override: true |
183 |
| - profile: minimal |
184 |
| - components: rustfmt |
185 |
| - - run: cargo check --target "x86_64-unknown-linux-gnu" -p codegen |
186 |
| - |
187 |
| - markdown-lint: |
188 |
| - name: Markdown Lint |
189 |
| - runs-on: ubuntu-latest |
190 |
| - steps: |
191 |
| - - uses: actions/checkout@v2 |
192 |
| - |
193 |
| - with: |
194 |
| - files: . |
195 |
| - config_file: .markdownlint.yml |
196 |
| - ignore_files: target/ |
197 |
| - |
198 |
| - link-checker: |
199 |
| - name: Link Checker |
200 |
| - runs-on: ubuntu-latest |
201 |
| - steps: |
202 |
| - - name: Checkout |
203 |
| - uses: actions/checkout@v2 |
204 |
| - - name: Check URLs in documentation |
205 |
| - uses: lycheeverse/[email protected] |
206 |
| - with: |
207 |
| - args: --verbose --no-progress "**/*.md" "**/*.rs" "Cargo.toml" "**/Cargo.toml" -h accept=text/html |
208 |
| - |
209 |
| - cargo-deny: |
210 |
| - name: Cargo Deny |
211 |
| - runs-on: ubuntu-latest |
212 |
| - steps: |
213 |
| - - uses: actions/checkout@v2 |
214 |
| - - uses: EmbarkStudios/cargo-deny-action@v1 |
| 69 | + - run: cargo test -p testsuite --no-run |
0 commit comments