Skip to content

Commit 95e9e77

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 771c472 commit 95e9e77

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,41 @@ jobs:
225225
- name: build
226226
run: |
227227
scripts/build.sh distro
228+
229+
build-windows:
230+
runs-on: windows-latest
231+
232+
defaults:
233+
run:
234+
shell: msys2 {0}
235+
236+
steps:
237+
- name: Checkout repository
238+
uses: actions/checkout@v4
239+
240+
- name: Setup MSYS2
241+
uses: msys2/setup-msys2@v2
242+
with:
243+
msystem: MINGW64
244+
update: true
245+
install: >
246+
git
247+
mingw-w64-x86_64-gcc
248+
mingw-w64-x86_64-meson
249+
mingw-w64-x86_64-ninja
250+
mingw-w64-x86_64-pkg-config
251+
mingw-w64-x86_64-json-c
252+
253+
- name: Configure (Meson)
254+
run: |
255+
meson setup build \
256+
--prefix=/mingw64 \
257+
-Ddefault_library=static
258+
259+
- name: Build
260+
run: |
261+
meson compile -C build
262+
263+
- name: Run tests (optional)
264+
run: |
265+
meson test -C build || true

0 commit comments

Comments
 (0)