-
Notifications
You must be signed in to change notification settings - Fork 124
54 lines (44 loc) · 1.12 KB
/
mingw.yml
File metadata and controls
54 lines (44 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: MinGW Clang64 Full Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
fail-fast: false
matrix:
profile: [RelWithDebInfo, Debug]
name: MinGW Clang64 Build (${{ matrix.profile }})
runs-on: windows-2025
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup MSYS2
id: msys2
uses: msys2/setup-msys2@v2
with:
msystem: clang64
update: true
install: >-
git
mingw-w64-clang-x86_64-toolchain
mingw-w64-clang-x86_64-cmake
mingw-w64-clang-x86_64-ninja
- name: Configure
run: >
cmake -GNinja
-B${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{ matrix.profile }}
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_C_COMPILER=clang
- name: Build
run: >
cmake
--build ${{github.workspace}}/build
--parallel
- name: Test
run: >
cd ${{github.workspace}}/build
ctest