-
Notifications
You must be signed in to change notification settings - Fork 19
68 lines (57 loc) · 1.51 KB
/
CI.yml
File metadata and controls
68 lines (57 loc) · 1.51 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
name: CI
on:
push:
branches:
- master
paths-ignore:
- "**.md"
- "docs/**"
pull_request:
paths-ignore:
- "**.md"
- "docs/**"
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
matrix:
os: [ubuntu-20.04, macos-11, windows-2022]
include:
- os: ubuntu-20.04
c-compiler: "gcc"
cxx-compiler: "g++"
- os: macos-11
c-compiler: "clang"
cxx-compiler: "clang++"
- os: windows-2022
c-compiler: "cl.exe"
cxx-compiler: "cl.exe"
name: Tests on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup visual studio environment
uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-2022'
with:
arch: x64
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
with:
cmake-version: 3.22.2
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: "5.15.2"
target: "desktop"
- name: Setup ninja
uses: urkle/action-get-ninja@v1
with:
version: 1.10.2
- name: Configure
run: cmake -GNinja -S src -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_CLI:BOOL=ON -DBUILD_GUI:BOOL=ON -DUSE_ITK:BOOL=OFF
env:
CC: ${{ matrix.c-compiler }}
CXX: ${{ matrix.cxx-compiler }}
- name: Build
run: cmake --build ${{github.workspace}}/build --config Release