Skip to content

Commit b7d0750

Browse files
eagleoflqjlotem
authored andcommitted
add mingw-w64 ci
1 parent 2b33663 commit b7d0750

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/mingw.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: mingw-w64 CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
defaults:
13+
run:
14+
shell: msys2 {0}
15+
steps:
16+
- uses: msys2/setup-msys2@v2
17+
- uses: actions/checkout@v3
18+
- name: Install dependencies
19+
run: pacman -S --noconfirm base-devel mingw-w64-x86_64-toolchain cmake ninja python
20+
- name: Build with mingw-w64
21+
run: |
22+
CC=/mingw64/bin/cc CXX=/mingw64/bin/c++ cmake \
23+
-B build -G Ninja \
24+
-DCMAKE_BUILD_TYPE=Release \
25+
-DCMAKE_INSTALL_PREFIX=/usr \
26+
-DENABLE_GTEST=ON \
27+
-DBUILD_SHARED_LIBS=OFF
28+
cmake --build build
29+
- name: Run test
30+
run: |
31+
cd build
32+
ctest

0 commit comments

Comments
 (0)