-
Notifications
You must be signed in to change notification settings - Fork 4
74 lines (60 loc) · 1.68 KB
/
Copy pathci.yml
File metadata and controls
74 lines (60 loc) · 1.68 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Linux GCC
os: ubuntu-latest
cc: gcc
cxx: g++
- name: Linux Clang
os: ubuntu-latest
cc: clang
cxx: clang++
- name: macOS Universal (target 10.13)
os: macos-latest
cmake_args: -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64"
- name: Windows MSVC
os: windows-latest
msvc_dev: true
- name: Windows Clang
os: windows-latest
msvc_dev: true
cc: clang-cl
cxx: clang-cl
- name: Windows MSVC ARM64
os: windows-11-arm
msvc_dev: true
msvc_arch: arm64
- name: Windows Clang ARM64
os: windows-11-arm
msvc_dev: true
msvc_arch: arm64
cc: clang-cl
cxx: clang-cl
steps:
- uses: actions/checkout@v5
- name: Set up CMake and Ninja
uses: lukka/get-cmake@latest
- name: Set up MSVC environment
if: matrix.msvc_dev
uses: TheMrMilchmann/setup-msvc-dev@v4
with:
arch: ${{ matrix.msvc_arch || 'x64' }}
- name: Configure
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: cmake -S . -B build -G Ninja ${{ matrix.cmake_args }}
- name: Build
run: cmake --build build
- name: Test
run: ctest --test-dir build --output-on-failure