-
Notifications
You must be signed in to change notification settings - Fork 38
187 lines (160 loc) · 5.41 KB
/
all-os.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
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
name: All OS
on: [push, pull_request]
jobs:
apple-clang:
name: AppleClang XCode ${{ matrix.xcode }} MacOS
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
arch: [x64]
os: [macos-13]
xcode: [14.3, 15.2]
include:
- xcode: 13
os: macos-12
arch: x64
steps:
- uses: actions/checkout@v4
- name: get-cmake
uses: lukka/get-cmake@v3.26.0
- name: Run vcpkg
uses: lukka/run-vcpkg@v11
with:
# Location of the vcpkg as submodule of the repository.
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
vcpkgGitCommitId: '01f602195983451bc83e72f4214af2cbc495aa94'
# Since the cache must be invalidated when content of the vcpkg.json file changes, let's
# compute its hash and append this to the computed cache's key.
appendedCacheKey: ${{ hashFiles( '**/vcpkg.json' ) }}
- uses: maxim-lobanov/setup-xcode@v1.5.1
with:
xcode-version: ${{ matrix.xcode }}
- name: 'Run CMake'
uses: lukka/run-cmake@v10
with:
configurePreset: 'ci'
buildPreset: 'ci'
testPreset: 'ci'
configurePresetCmdString: '[`--preset`, `$[env.CONFIGURE_PRESET_NAME]`]'
linux-clang:
name: Clang ${{ matrix.clang }} Linux
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
arch: [x64]
os: [ubuntu-20.04]
clang: [11, 12, 13, 14]
include:
- clang: 15
os: ubuntu-22.04
arch: x64
- clang: 16
os: ubuntu-22.04
arch: x64
- clang: 17
os: ubuntu-22.04
arch: x64
- clang: 18
os: ubuntu-22.04
arch: x64
steps:
- uses: actions/checkout@v4
# Minimum GCC version required for vcpkg
- uses: egor-tensin/setup-gcc@v1
with:
version: 9
platform: ${{ matrix.arch }}
- name: get-cmake
uses: lukka/get-cmake@v3.26.0
- name: Run vcpkg
uses: lukka/run-vcpkg@v11
with:
# Location of the vcpkg as submodule of the repository.
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
vcpkgGitCommitId: '01f602195983451bc83e72f4214af2cbc495aa94'
# Since the cache must be invalidated when content of the vcpkg.json file changes, let's
# compute its hash and append this to the computed cache's key.
appendedCacheKey: ${{ hashFiles( '**/vcpkg.json' ) }}
- uses: egor-tensin/setup-clang@v1
with:
version: ${{ matrix.clang }}
platform: ${{ matrix.arch }}
- name: 'Run CMake'
uses: lukka/run-cmake@v10
with:
configurePreset: 'ci'
buildPreset: 'ci'
testPreset: 'ci'
configurePresetCmdString: '[`--preset`, `$[env.CONFIGURE_PRESET_NAME]`]'
linux-gcc:
name: GCC ${{ matrix.gcc }} Linux
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
arch: [x64]
os: [ubuntu-22.04]
gcc: [11, 12, 13]
steps:
- uses: actions/checkout@v4
# Minimum GCC version required for vcpkg
- uses: egor-tensin/setup-gcc@v1
with:
version: 9
platform: ${{ matrix.arch }}
- name: get-cmake
uses: lukka/get-cmake@v3.26.0
- name: Run vcpkg
uses: lukka/run-vcpkg@v11
with:
# Location of the vcpkg as submodule of the repository.
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
vcpkgGitCommitId: '01f602195983451bc83e72f4214af2cbc495aa94'
# Since the cache must be invalidated when content of the vcpkg.json file changes, let's
# compute its hash and append this to the computed cache's key.
appendedCacheKey: ${{ hashFiles( '**/vcpkg.json' ) }}
- uses: egor-tensin/setup-gcc@v1
with:
version: ${{ matrix.gcc }}
platform: ${{ matrix.arch }}
- name: 'Run CMake'
uses: lukka/run-cmake@v10
with:
configurePreset: 'ci'
buildPreset: 'ci'
testPreset: 'ci'
configurePresetCmdString: '[`--preset`, `$[env.CONFIGURE_PRESET_NAME]`]'
windows-msvc:
runs-on: windows-latest
name: MSVC ${{ matrix.msvc-version }} Windows
strategy:
fail-fast: false
matrix:
os: [windows-2022]
arch: [x64]
steps:
- uses: actions/checkout@v4
- uses: egor-tensin/vs-shell@v2
with:
arch: ${{ matrix.arch }}
- name: get-cmake
uses: lukka/get-cmake@v3.26.0
- name: Run vcpkg
uses: lukka/run-vcpkg@v11
with:
# Location of the vcpkg as submodule of the repository.
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
useVcpkgToolchainFile: true
vcpkgGitCommitId: '01f602195983451bc83e72f4214af2cbc495aa94'
# Since the cache must be invalidated when content of the vcpkg.json file changes, let's
# compute its hash and append this to the computed cache's key.
appendedCacheKey: ${{ hashFiles( '**/vcpkg.json' ) }}
- name: 'Run CMake'
uses: lukka/run-cmake@v10
with:
configurePreset: 'ci'
buildPreset: 'ci'
testPreset: 'ci'
configurePresetCmdString: '[`--preset`, `$[env.CONFIGURE_PRESET_NAME]`]'