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,36 @@ 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+ defaults :
233+ run :
234+ shell : msys2 {0}
235+ steps :
236+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
237+ - name : Setup MSYS2
238+ uses : msys2/setup-msys2@cafece8e6baf9247cf9b1bf95097b0b983cc558d # v2.31.0
239+ with :
240+ msystem : MINGW64
241+ update : true
242+ install : >
243+ git
244+ mingw-w64-x86_64-gcc
245+ mingw-w64-x86_64-meson
246+ mingw-w64-x86_64-ninja
247+ mingw-w64-x86_64-pkg-config
248+ mingw-w64-x86_64-json-c
249+ - name : Configure (Meson)
250+ run : |
251+ meson setup .build-ci \
252+ --prefix=/mingw64 \
253+ -Dversion-tag=master \
254+ -Ddefault_library=static
255+ - name : Build
256+ run : |
257+ meson compile -C .build-ci
258+ - name : Run tests (optional)
259+ run : |
260+ meson test -C .build-ci || true
You can’t perform that action at this time.
0 commit comments