Commit de9e795
committed
ci(quasar): support multi-program projects; re-enable cross-program-invocation/quasar
The CPI quasar example contains two separate Quasar programs (hand/ and lever/)
rather than a single program with a root Quasar.toml, so the Quasar workflow —
which ran `quasar build && cargo test` directly in the project dir — failed
(quasar build requires ./src/lib.rs and is single-program only), and the
example was excluded in .ghaignore.
Teach the workflow's build_and_test to detect a project's program directories:
the project itself when it has a Quasar.toml (unchanged for every existing
example), otherwise its immediate subdirectories that each contain one. It now
builds all of a project's programs first, then tests them all — so hand's test,
which loads lever's freshly-built .so to exercise the CPI, finds it regardless
of directory order (the 47 quasar projects shard across parallel jobs, so
cross-project build order can't be relied on).
Verified locally with the quasar CLI: both programs build and all tests pass
(hand 3, lever 4). Drop the example from .github/.ghaignore.1 parent e4faaa5 commit de9e795
2 files changed
Lines changed: 37 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
180 | 188 | | |
181 | 189 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
189 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
190 | 217 | | |
191 | 218 | | |
192 | 219 | | |
| |||
0 commit comments