From 00a069d6088ff8d93304eaac4d925cece0e9081c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 3 Apr 2026 21:10:34 +0200 Subject: [PATCH] Perform meson build in mingw workflow. --- .github/workflows/mingw.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 699a1713..15e5ebad 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -18,7 +18,7 @@ jobs: - name: Install dependencies run: | pacman -Syu --noconfirm - pacman -S --noconfirm --needed mingw-w64-gcc cmake git nodejs + pacman -S --noconfirm --needed mingw-w64-gcc cmake git nodejs meson - name: Trust git repo run: git config --global --add safe.directory '*' - uses: actions/checkout@v4 @@ -35,6 +35,23 @@ jobs: -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \ -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ cmake --build build + - name: Library (meson) + run: | + cat > mingw-cross.txt << 'EOF' + [binaries] + c = '/usr/bin/x86_64-w64-mingw32-gcc' + cpp = '/usr/bin/x86_64-w64-mingw32-g++' + ar = '/usr/bin/x86_64-w64-mingw32-ar' + strip = '/usr/bin/x86_64-w64-mingw32-strip' + + [host_machine] + system = 'windows' + cpu_family = 'x86_64' + cpu = 'x86_64' + endian = 'little' + EOF + meson setup build-meson --cross-file mingw-cross.txt -Ddefault_library=static + meson compile -C build-meson - name: Test application run: | cmake -B test/build -S test -DCMAKE_BUILD_TYPE=Release \