-
Notifications
You must be signed in to change notification settings - Fork 73
204 lines (192 loc) · 5.47 KB
/
ccp-workflow.yml
File metadata and controls
204 lines (192 loc) · 5.47 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# taken from https://github.com/onqtam/doctest/blob/master/.github/workflows/main.yml
name: C/C++ CI
on:
push:
pull_request:
types: [opened, reopened]
jobs:
build:
strategy:
fail-fast: false
matrix:
include: [
{ system: MacOS, runner: macos-latest },
{ system: Ubuntu-22, runner: ubuntu-22.04 },
{ system: Ubuntu-latest, runner: ubuntu-latest },
]
name: ${{ matrix.system }} Build
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
- name: cmake
run: cmake -DOJPH_BUILD_STREAM_EXPAND=ON ..
working-directory: build
- name: build
run: make
working-directory: build
build_mac:
strategy:
fail-fast: false
matrix:
include: [
{ system: MacOS Dual Build, runner: macos-latest },
]
name: ${{ matrix.system }} Build
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
- name: cmake
run: cmake -DOJPH_BUILD_STREAM_EXPAND=ON -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DOJPH_ENABLE_TIFF_SUPPORT=OFF ..
working-directory: build
- name: build
run: make
working-directory: build
build_windows:
strategy:
fail-fast: false
matrix:
include: [
{ system: Windows, runner: windows-latest },
]
name: ${{ matrix.system }} Build
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
- name: cmake
run: cmake -G "Visual Studio 17 2022" -A x64 -DOJPH_ENABLE_TIFF_SUPPORT=OFF -DOJPH_BUILD_STREAM_EXPAND=ON ..
working-directory: build
- name: build
run: cmake --build . --config Release
working-directory: build
build_msys2:
strategy:
fail-fast: false
matrix:
include: [
{ system: Windows-MSYS2, runner: windows-latest },
]
name: ${{ matrix.system }} Build
runs-on: ${{ matrix.runner }}
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v5
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: false
pacboy: cc:p cmake:p libtiff:p
- name: cmake
run: cmake -DOJPH_BUILD_STREAM_EXPAND=ON ..
working-directory: build
- name: build
run: cmake --build . --config Release
working-directory: build
build_windows_on_arm:
strategy:
fail-fast: false
matrix:
include: [
{ system: WindowsOnARM, runner: windows-11-arm },
]
name: ${{ matrix.system }} Build
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
- name: cmake
run: cmake -G "Visual Studio 17 2022" -A ARM64 -DOJPH_ENABLE_TIFF_SUPPORT=OFF -DOJPH_BUILD_STREAM_EXPAND=ON ..
working-directory: build
- name: build
run: cmake --build . --config Release
working-directory: build
test:
strategy:
fail-fast: false
matrix:
include: [
{ system: MacOS-Intel, runner: macos-15-intel },
{ system: MacOS-latest, runner: macos-latest },
{ system: Ubuntu-latest, runner: ubuntu-latest },
]
name: ${{ matrix.system }} Test
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
- name: cmake
run: cmake -DOJPH_BUILD_TESTS=yes ..
working-directory: build
- name: build
run: make
working-directory: build
- name: test
run: ctest --output-on-failure
working-directory: build
test_windows:
strategy:
fail-fast: false
matrix:
include: [
{ system: Windows, runner: windows-latest },
]
name: ${{ matrix.system }} Test
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
- name: cmake
run: cmake -G "Visual Studio 17 2022" -A x64 -DOJPH_ENABLE_TIFF_SUPPORT=OFF -DOJPH_BUILD_TESTS=ON ..
working-directory: build
- name: build
run: cmake --build . --config Release
working-directory: build
- name: test
run: ctest --output-on-failure -C Release
working-directory: build
test_msys2:
strategy:
fail-fast: false
matrix:
include: [
{ system: Windows-MSYS2, runner: windows-latest },
]
name: ${{ matrix.system }} Test
runs-on: ${{ matrix.runner }}
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v5
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: false
pacboy: cc:p cmake:p python:p
- name: cmake
run: cmake -DOJPH_ENABLE_TIFF_SUPPORT=OFF -DOJPH_BUILD_TESTS=ON -DPython3_EXECUTABLE=${MINGW_PREFIX}/bin/python.exe ..
working-directory: build
- name: build
run: cmake --build . --config Release
working-directory: build
- name: test
run: ctest --output-on-failure -C Release
working-directory: build
test_windows_on_arm:
strategy:
fail-fast: false
matrix:
include: [
{ system: WindowsOnARM, runner: windows-11-arm },
]
name: ${{ matrix.system }} Test
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
- name: cmake
run: cmake -G "Visual Studio 17 2022" -A ARM64 -DOJPH_ENABLE_TIFF_SUPPORT=OFF -DOJPH_BUILD_TESTS=ON ..
working-directory: build
- name: build
run: cmake --build . --config Release
working-directory: build
- name: test
run: ctest --output-on-failure -C Release
working-directory: build