Commit c0645d2
authored
chore: clean up main branch and sync win32-x64 prebuilt artifacts (#93)
- cli(cef): remove legacy `.cef-cache` migration code from `ensure_cef_cache`;
the migration was tagged legacy at package isolation (a6b05f1) and the
project is pre-0.1.x, so existing `.cef-cache` users re-download to the
new `.proton/cache/cef` or global `~/.proton/cache/cef` location.
- ci(windows): add `$ErrorActionPreference = "Stop"` and
`$PSNativeCommandUseErrorActionPreference = $true` to the
"Test extensions on Windows" and "Build examples on Windows" steps.
Without these, `moon.exe` returning a non-zero exit code was silently
swallowed by PowerShell, leaving CI green while tests were actually
failing (matching the pattern already used by the
"Check framework modules on Windows" and "Run MoonBit CDP e2e on Windows"
steps).
- fs(test): the `fs permission resolution anchors relative paths to the
trusted base` assertion built its expected root path with
`base.join("workspace").normalize()`, missing the `.resolve()` call that
`resolve_path_against_base` actually performs on the trusted base. On
Windows this produced a drive-less `\trusted\app\workspace` expectation
while the code correctly resolves to `D:\trusted\app\workspace`. Use
`canonical_base` (which already applies `.resolve()`) to align the
expectation with the implementation.
- prebuilt(win32-x64): rebuild `proton.dll` and `proton.lib` in Release
mode from current `main` source and sync into
`proton/prebuilt/win32-x64/`. The committed artifacts were stale and
missing the `proton_window_*`, `proton_view_*`, and other newer ABI
exports declared in `native/include/proton_native.h`, causing
`node scripts/verify_prebuilt_abi.mjs win32-x64` to fail. After sync the
ABI validator reports `[OK] Proton win32-x64 prebuilt exports the
complete public ABI.`
Validation:
moon fmt --check
node scripts/verify_generated.mjs
node scripts/verify_prebuilt_abi.mjs win32-x64
ctest --test-dir native\build-release -C Release --output-on-failure
moon check --target native --deny-warn
moon -C proton test native --target native
moon -C cli test -p ... --target native --no-parallelize
moon -C extensions test -p ... --target native
moon test -p .../ffi ... --target native
moon -C examples build --target native
moon -C e2e build --target native1 parent 67c6b27 commit c0645d2
5 files changed
Lines changed: 9 additions & 14 deletions
File tree
- .github/workflows
- cli/cef
- extensions/fs
- proton/prebuilt/win32-x64
- bin
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| |||
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
| 310 | + | |
| 311 | + | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 159 | | |
173 | 160 | | |
174 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
291 | 295 | | |
292 | 296 | | |
293 | 297 | | |
| |||
Binary file not shown.
Binary file not shown.
0 commit comments