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

@@ -87,77 +87,3 @@
8787 - name: sccache stats
8888 if: always()
8989 run: sccache --show-stats
90-
91- windows-mingw:
92- name: windows-mingw
93- runs-on: windows-latest
94- defaults:
95- run:
96- shell: msys2 {0}
97- env:
98- CC: sccache gcc
99- SCCACHE_GHA_ENABLED: "true"
100- steps:
101- # Real-time scanning of every spawned cc/ld/.exe and temp file dominates
102- # this compile-heavy job (846 per-test builds). Turning it off cuts the
103- # test step several-fold. try/catch so a Defender policy change can never
104- # red the job.
105- - name: Disable Defender real-time monitoring
106- shell: pwsh
107- run: |
108- try { Set-MpPreference -DisableRealtimeMonitoring $true }
109- catch { Write-Host "Could not disable Defender realtime monitoring: $_" }
110-
111- - uses: actions/checkout@v6
112-
113- - name: Set up MSYS2 (MINGW64)
114- uses: msys2/setup-msys2@v2
115- with:
116- msystem: MINGW64
117- update: false
118- # Reuse the pacman package set across runs — saves ~1m of
119- # download/install on every job.
120- cache: true
121- path-type: inherit
122- install: >-
123- base-devel
124- mingw-w64-x86_64-toolchain
125- mingw-w64-x86_64-ruby
126- make
127- diffutils
128- curl
129- tar
130-
131- # Install the sccache binary on the Windows-side PATH; MSYS2
132- # inherits Windows PATH (path-type: inherit, above) so the
133- # `sccache` command resolves from the bash shell that make
134- # invokes.
135- - name: Set up sccache
136- uses: mozilla-actions/[email protected]
137-
138- - name: Show toolchain
139- run: |
140- uname -a
141- gcc --version
142- ruby --version
143- make --version | head -1
144- sccache --version
145-
146- - name: Fetch libprism sources
147- run: make deps
148-
149- - name: Build (parse + regexp + spinelc)
150- run: make -j$(nproc) LTO=0 all
151-
152- - name: Run tests
153- # OPT=-O1 is the big lever here: each per-test cc compiles the
154- # sp_runtime.h-heavy generated C ~3x faster than at -O0 (gcc prunes the
155- # 800+ unreferenced static fns before codegen). Plain gcc (not the
156- # sccache wrapper): the generated C is unique per test so sccache only
157- # adds miss-overhead; the build step above keeps sccache where caching
158- # the runtime/prism objects pays off.
159- run: make -j$(nproc) test OPT=-O1 CC=gcc
160-
161- - name: sccache stats
162- if: always()
163- run: sccache --show-stats