Skip to content

Commit 56176ce

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 3d467eb commit 56176ce

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff 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@v4
240+
241+
- name: Setup MSYS2
242+
uses: msys2/setup-msys2@v2
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 \
257+
--prefix=/mingw64 \
258+
-Dversion-tag=master \
259+
-Ddefault_library=static
260+
261+
- name: Build
262+
run: |
263+
meson compile -C build
264+
265+
- name: Run tests (optional)
266+
run: |
267+
meson test -C build || true

0 commit comments

Comments
 (0)