Skip to content

Commit 3302a58

Browse files
committed
build: add windows build workflow
Add a workflow to test the windows build. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 5272366 commit 3302a58

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)