Commit f95f8732
f95f87329f95Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 2 files · ~2 modified
Description
ci, docs: drop native Windows (MinGW) support; direct Windows users to WSL
Native Windows via MSYS2/MinGW was always a shim-heavy, incomplete port (the
runtime is POSIX-flavoured — ucontext fibers, mmap, cleanup attrs — and MSVC
was never supported), and it carried a recurring maintenance tax: features that
pass everywhere else surface Windows-only breakage (strftime directives, /tmp
paths, the --rbs seed plumbing) that's hard to fix without a Windows box. WSL
now gives Windows users a real Linux environment where Spinel builds and runs
natively, making the MinGW path largely redundant.
Remove the windows-mingw CI job and update the README portability section to
point Windows users at WSL. The platform-specific _WIN32 code paths are
removed in a follow-up.
Details
- Commit
- f95f87329f95
- Parent
- a6a41ca8f2fb
.github/workflows/ci.ymlmodifiedView file
- name: sccache stats if: always() run: sccache --show-stats windows-mingw: name: windows-mingw runs-on: windows-latest defaults: run: shell: msys2 {0} env: CC: sccache gcc SCCACHE_GHA_ENABLED: "true" steps: # Real-time scanning of every spawned cc/ld/.exe and temp file dominates # this compile-heavy job (846 per-test builds). Turning it off cuts the # test step several-fold. try/catch so a Defender policy change can never # red the job. - name: Disable Defender real-time monitoring shell: pwsh run: | try { Set-MpPreference -DisableRealtimeMonitoring $true } catch { Write-Host "Could not disable Defender realtime monitoring: $_" } - uses: actions/checkout@v6 - name: Set up MSYS2 (MINGW64) uses: msys2/setup-msys2@v2 with: msystem: MINGW64 update: false # Reuse the pacman package set across runs — saves ~1m of # download/install on every job. cache: true path-type: inherit install: >- base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-ruby make diffutils curl tar # Install the sccache binary on the Windows-side PATH; MSYS2 # inherits Windows PATH (path-type: inherit, above) so the # `sccache` command resolves from the bash shell that make # invokes. - name: Set up sccache uses: mozilla-actions/[email protected] - name: Show toolchain run: | uname -a gcc --version ruby --version make --version | head -1 sccache --version - name: Fetch libprism sources run: make deps - name: Build (parse + regexp + spinelc) run: make -j$(nproc) LTO=0 all - name: Run tests # OPT=-O1 is the big lever here: each per-test cc compiles the # sp_runtime.h-heavy generated C ~3x faster than at -O0 (gcc prunes the # 800+ unreferenced static fns before codegen). Plain gcc (not the # sccache wrapper): the generated C is unique per test so sccache only # adds miss-overhead; the build step above keeps sccache where caching # the runtime/prism objects pays off. run: make -j$(nproc) test OPT=-O1 CC=gcc - name: sccache stats if: always() run: sccache --show-statsREADME.mdmodifiedView file
Loading diff…