File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,3 +225,43 @@ jobs:
225225 - name : build
226226 run : |
227227 scripts/build.sh distro
228+
229+ build-windows :
230+ name : build windows
231+ runs-on : windows-latest
232+
233+ defaults :
234+ run :
235+ shell : msys2 {0}
236+
237+ steps :
238+ - name : Checkout repository
239+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
240+
241+ - name : Setup MSYS2
242+ uses : msys2/setup-msys2@cafece8e6baf9247cf9b1bf95097b0b983cc558d # v2.31.0
243+ with :
244+ msystem : MINGW64
245+ update : true
246+ install : >
247+ git
248+ mingw-w64-x86_64-gcc
249+ mingw-w64-x86_64-meson
250+ mingw-w64-x86_64-ninja
251+ mingw-w64-x86_64-pkg-config
252+ mingw-w64-x86_64-json-c
253+
254+ - name : Configure (Meson)
255+ run : |
256+ meson setup .build-ci \
257+ --prefix=/mingw64 \
258+ -Dversion-tag=master \
259+ -Ddefault_library=static
260+
261+ - name : Build
262+ run : |
263+ meson compile -C .build-ci
264+
265+ - name : Run tests (optional)
266+ run : |
267+ meson test -C .build-ci || true
You can’t perform that action at this time.
0 commit comments