Skip to content

Commit 0b67847

Browse files
authored
Adding clang/msys-ci (simdjson#1354)
1 parent a72cb8a commit 0b67847

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/msys2-clang.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: MSYS2-CLANG-CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
windows-mingw:
13+
name: ${{ matrix.msystem }}
14+
runs-on: windows-latest
15+
defaults:
16+
run:
17+
shell: msys2 {0}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
include:
22+
- msystem: "MINGW64"
23+
install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-clang
24+
type: Release
25+
- msystem: "MINGW32"
26+
install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-clang
27+
type: Release
28+
- msystem: "MINGW64"
29+
install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-clang
30+
type: Debug
31+
- msystem: "MINGW32"
32+
install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-clang
33+
type: Debug
34+
env:
35+
CMAKE_GENERATOR: Ninja
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
- uses: actions/cache@v2
40+
with:
41+
path: dependencies/.cache
42+
key: ${{ hashFiles('dependencies/CMakeLists.txt') }}
43+
- uses: msys2/setup-msys2@v2
44+
with:
45+
update: true
46+
msystem: ${{ matrix.msystem }}
47+
install: ${{ matrix.install }}
48+
- name: Build and Test
49+
run: |
50+
mkdir build
51+
cd build
52+
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_DO_NOT_USE_THREADS_NO_MATTER_WHAT=ON ..
53+
cmake --build . --verbose
54+
ctest -j4 --output-on-failure -LE explicitonly

0 commit comments

Comments
 (0)