Skip to content

Commit 451b3dd

Browse files
committed
Add CI
1 parent 5460cef commit 451b3dd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: libdispatch
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
mingw:
9+
runs-on: windows-2022
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- { msystem: MINGW64, arch: x86_64 }
15+
- { msystem: UCRT64, arch: ucrt-x86_64 }
16+
- { msystem: CLANG64, arch: clang-x86_64 }
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up MSYS2
20+
uses: msys2/setup-msys2@v2
21+
with:
22+
msystem: ${{ matrix.msystem }}
23+
install: >
24+
mingw-w64-${{matrix.arch}}-cmake
25+
mingw-w64-${{matrix.arch}}-clang
26+
mingw-w64-${{matrix.arch}}-lld
27+
- name: Build
28+
shell: msys2 {0}
29+
run: |
30+
mkdir build
31+
cd build
32+
LDFLAGS="-fuse-ld=lld" cmake .. -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++"
33+
cmake --build .

0 commit comments

Comments
 (0)