Commit 07dea03
committed
Windows: skip site-packages copy when source dir is missing + propagate
flutter test failure on Windows runner.
Two bugs surfaced in the previous Windows CI run:
1. The workflow-level env var SERIOUS_PYTHON_SITE_PACKAGES is set, but the
directory it points at only exists when an outer step (the old
cibuildwheel-based workflow) populated it. With the new pre-built-binary
pipeline that step is gone, so cmake -E copy_directory ran against a
missing source and CopyPythonDLLs.vcxproj exited 1. Guard with
`if(DEFINED ENV{...} AND EXISTS "$ENV{...}")`.
2. The Windows job's GitHub Actions step used the default PowerShell shell,
where `flutter test ... | tail -200` swallows flutter's non-zero exit
(PowerShell pipelines don't honor pipefail). Tests reported "0 tests
passed, 1 failed" yet the step reported success. Switch to `shell: bash`
+ explicit `set -o pipefail` so failures surface.1 parent 195b604 commit 07dea03
2 files changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
200 | 201 | | |
201 | 202 | | |
202 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
143 | 148 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | | - | |
| 153 | + | |
151 | 154 | | |
152 | 155 | | |
0 commit comments