-
-
Notifications
You must be signed in to change notification settings - Fork 364
88 lines (76 loc) · 2.06 KB
/
cmake.yml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: CMake
on:
push:
paths-ignore:
- 'Example.md'
- 'HowToSetProject.ko.md'
- 'HowToSetProject.md'
- 'README.ko.md'
- 'README.md'
- 'TestEnv.md'
- 'ToTest.md'
- 'ToUpgrade.md'
- 'Vision.md'
- 'LICENSE'
branches:
- master
pull_request:
paths-ignore:
- 'Example.md'
- 'HowToSetProject.ko.md'
- 'HowToSetProject.md'
- 'README.ko.md'
- 'README.md'
- 'TestEnv.md'
- 'ToTest.md'
- 'ToUpgrade.md'
- 'Vision.md'
- 'LICENSE'
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
build_type:
- Debug
- Release
link_type:
- static
- shared
config:
- qt_version: "5.12"
macos_architectures: "x86_64"
- qt_version: "6.6.0"
macos_architectures: "x86_64;arm64"
steps:
- name: Install Qt with options and default aqtversion
uses: jurplel/install-qt-action@v3
with:
aqtversion: null # use whatever the default is
modules: ${{ matrix.config.modules }}
version: ${{ matrix.config.qt_version }}
cache: true
- name: Checkout sources
uses: actions/checkout@v4
- name: Install ninja-build tool (must be after Qt due PATH changes)
uses: turtlesec-no/get-ninja@main
- name: Make sure MSVC is found when Ninja generator is in use
if: ${{ runner.os == 'Windows' }}
uses: ilammy/msvc-dev-cmd@v1
- name: Configure project
run: >
cmake -S QXlsx -B ./build -G Ninja
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
--warn-uninitialized
-Werror=dev
-DBUILD_SHARED_LIBS=${{ matrix.link_type == 'shared' }}
-DCMAKE_OSX_ARCHITECTURES="${{ matrix.config.macos_architectures }}"
- name: Build Project
run: cmake --build ./build