-
Notifications
You must be signed in to change notification settings - Fork 3
242 lines (204 loc) · 7.06 KB
/
build.yml
File metadata and controls
242 lines (204 loc) · 7.06 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
name: Build
on:
schedule:
- cron: "37 8 * * *"
workflow_dispatch:
jobs:
# Windows-MSVC
Windows:
name: ${{ matrix.icon }} windows (${{matrix.platform}}, ${{matrix.compiler}}-${{matrix.compiler-ver}}, ${{matrix.build-type}})
runs-on: ${{matrix.runs-on}}
strategy:
fail-fast: false
matrix:
runs-on: [windows-2025, windows-11-arm]
sys: [windows]
icon: ["⬜"]
buildenv: [VS2022]
compiler: [MSVC]
mode: ["cxx23"]
build-type: ["Release", "Debug"]
target: ["all"]
cmake-override: ["-Dincplot_USE_LOCAL_PACKAGES=OFF"]
include:
- compiler: "MSVC"
compiler-ver: "19"
- runs-on: windows-2025
platform: "x86_64"
- runs-on: windows-11-arm
platform: "arm64"
# Can't use clang-cl on windows-arm?
# Leaving this be for the time being
exclude:
- runs-on: windows-11-arm
compiler: clang-cl
steps:
- name: "🧰 Checkout"
uses: actions/checkout@v5
- uses: TheMrMilchmann/setup-msvc-dev@v4
with:
arch: ${{matrix.platform}}
- name: Configure git credentials
run: |
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" |
git lfs install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Configure"
run: cmake --preset Win_${{matrix.compiler}}_${{matrix.build-type}} ${{matrix.cmake-override}}
- name: "🚧 Build"
run: cmake --build build --target ${{matrix.target}}
# Based on https://github.com/msys2/setup-msys2/blob/main/examples/cmake.yml
Windows-MSYS:
name: ${{ matrix.icon }} windows (${{matrix.platform}}, ${{matrix.msystem}}, ${{matrix.compiler}}-${{matrix.compiler-ver}}, ${{matrix.build-type}})
runs-on: ${{matrix.runs-on}}
strategy:
fail-fast: false
matrix:
runs-on: ["windows-2025"]
sys: [windows]
icon: ["🟦"]
buildenv: [msys2]
msystem: [ucrt64, clang64]
build-type: [Release, Debug]
compiler: [gcc, clang]
platform: ["x86_64"]
target: ["all"]
cmake-override: ["-Dincplot_CPR_USE_SYSTEM_CURL=ON"]
include:
- msystem: ucrt64
compiler: gcc
compiler-ver: 15
add-to-pacboy: ""
- msystem: ucrt64
compiler: clang
compiler-ver: 21
add-to-pacboy: "clang:p"
- msystem: clang64
compiler: clang
compiler-ver: 21
add-to-pacboy: ""
exclude:
- msystem: clang64
compiler: gcc
defaults:
run:
shell: msys2 {0}
steps:
- name: "🧰 Checkout"
uses: actions/checkout@v5
- name: "${{ matrix.icon }} Setup MSYS2"
uses: msys2/setup-msys2@v2.29.0
with:
msystem: ${{matrix.msystem}}
update: true
install: >-
git
make
pacboy: >-
toolchain:p
${{matrix.add-to-pacboy}}
ninja:p
cmake:p
meson:p
- name: Configure git credentials
run: |
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Configure"
run: cmake --preset ${{matrix.compiler}}_${{matrix.build-type}} ${{matrix.cmake-override}}
- name: "🚧 Build"
run: cmake --build build --target ${{matrix.target}}
# Based on https://github.com/tcbrindle/flux/blob/main/.github/workflows/linux.yml
Linux-Ubuntu:
name: ${{ matrix.icon }} linux (${{matrix.platform}}, ${{matrix.compiler}}-${{matrix.compiler-ver}}, ${{matrix.build-type}})
runs-on: ${{matrix.runs-on}}
strategy:
fail-fast: false
matrix:
icon: ["🟧"]
sys: [linux]
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
compiler: [gcc]
# compiler-ver: [15, 21]
build-type: [Release, Debug]
target: ["all"]
cmake-override: ["-Dincplot_CPR_USE_SYSTEM_CURL=ON"]
include:
- runs-on: ubuntu-24.04
platform: "x86_64"
- runs-on: ubuntu-24.04-arm
platform: "arm64"
- compiler: "gcc"
compiler-setupname: "gcc"
compiler-ver: "14"
# - compiler: "clang"
# compiler-setupname: "llvm"
# compiler-ver: "21"
steps:
- name: "🧰 Checkout"
uses: actions/checkout@v5
- name: Setup Cpp
uses: aminya/setup-cpp@v1
with:
setup-cpp: true
compiler: ${{matrix.compiler-setupname}}-${{matrix.compiler-ver}}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libharfbuzz-dev libfontconfig-dev nlohmann-json3-dev libwoff-dev libxxhash-dev libargparse-dev libarchive-dev libidn2-dev libcurl4-openssl-dev zlib1g-dev
- name: Configure
run: |
cmake --preset ${{matrix.compiler}}_${{matrix.build-type}} ${{matrix.cmake-override}}
- name: "🚧 Build"
run: cmake --build build --target ${{matrix.target}}
macOS:
name: ${{ matrix.icon }} macos (${{matrix.platform}}, ${{matrix.compiler}}-${{matrix.compiler-ver}}, ${{matrix.build-type}})
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
icon: ["⬛"]
sys: [macos]
runs-on: [macos-26]
compiler: [clang]
build-type: ["Release", "Debug"]
target: ["all"]
include:
# - runs-on: macos-15
# platform: "arm64"
# - runs-on: macos-15-intel
# platform: "x86_64"
- runs-on: macos-26
platform: "arm64"
# - compiler: "gcc"
# compiler-setupname: "gcc"
# compiler-ver: "15"
# cmake-override: "-DCMAKE_C_COMPILER=gcc-15 -DCMAKE_CXX_COMPILER=g++-15"
- compiler: "clang"
compiler-setupname: "llvm"
compiler-ver: "21"
cmake-override: "-Dincplot_CPR_USE_SYSTEM_CURL=ON"
steps:
- name: "🧰 Checkout"
uses: actions/checkout@v5
- name: Setup Cpp
uses: aminya/setup-cpp@v1
with:
setup-cpp: true
compiler: ${{matrix.compiler-setupname}}-${{matrix.compiler-ver}}
- name: Install dependencies
run: |
brew update
brew install woff2 nlohmann-json magic_enum argparse indicators cpr libarchive
- name: Configure git credentials
run: |
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Configure
run: |
cmake --preset ${{matrix.compiler}}_${{matrix.build-type}} ${{matrix.cmake-override}}
- name: "🚧 Build"
run: cmake --build build --target ${{matrix.target}}