Skip to content

Commit afc0e8a

Browse files
ci(windows): add MSYS2 MinGW/UCRT/Clang build matrix
1 parent ce7e433 commit afc0e8a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/windows-test.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,44 @@ jobs:
8282
wait_workflow: true
8383
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
8484
ref: master
85+
mingw-test:
86+
name: MSYS2 / ${{ matrix.sys }}
87+
runs-on: windows-latest
88+
strategy:
89+
fail-fast: false
90+
matrix:
91+
include:
92+
- sys: mingw64
93+
env: x86_64
94+
- sys: ucrt64
95+
env: ucrt-x86_64
96+
- sys: clang64
97+
env: clang-x86_64
98+
99+
steps:
100+
- name: Checkout repository
101+
uses: actions/checkout@v4
102+
103+
- name: Setup MSYS2
104+
uses: msys2/setup-msys2@v2
105+
with:
106+
msystem: ${{ matrix.sys }}
107+
update: true
108+
install: >
109+
mingw-w64-${{ matrix.env }}-cmake
110+
mingw-w64-${{ matrix.env }}-gcc
111+
mingw-w64-${{ matrix.env }}-ninja
112+
mingw-w64-${{ matrix.env }}-pkg-config
113+
make
114+
git
115+
116+
- name: Build MetaCall (MSYS2)
117+
shell: msys2 {0}
118+
run: |
119+
mkdir -p build
120+
cd build
121+
cmake .. -G "Ninja" \
122+
-DCMAKE_BUILD_TYPE=Release \
123+
-DOPTION_BUILD_PLUGINS_BACKTRACE=OFF \
124+
-DCMAKE_VERBOSE_MAKEFILE=ON
125+
cmake --build . --parallel $(nproc)

0 commit comments

Comments
 (0)