-
Notifications
You must be signed in to change notification settings - Fork 164
258 lines (250 loc) · 9.58 KB
/
main.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
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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
name: build
on: [push, pull_request]
jobs:
# build-linux-gcc:
# runs-on: Ubuntu-22.04
# strategy:
# matrix:
# compiler: ['g++-12', 'g++-11', 'g++-10', 'g++-9']
# standard: ['11', '14', '17', '20']
# unreleased: ['ON', 'OFF']
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: true
# - name: Install
# run: |
# sudo apt-add-repository ppa:ubuntu-toolchain-r/test
# sudo apt-get update
# sudo apt-get install libboost-test-dev
# sudo apt-get install language-pack-fr # test serializer w/ locale
# sudo apt-get install ${{ matrix.compiler }}
# - name: Configure
# run: |
# mkdir build && cd build
# cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
# - name: Build
# run: |
# cd build && cmake --build .
# - name: Test
# run: |
# cd build && ctest --output-on-failure
# build-linux-clang:
# runs-on: Ubuntu-22.04
# strategy:
# matrix:
# compiler: ['15', '14', '13', '12', '11']
# standard: ['11', '14', '17', '20']
# unreleased: ['ON', 'OFF']
# exclude:
# - {compiler: '14', standard: '20'} # to avoid using gcc-13 libstdc++
# - {compiler: '13', standard: '20'} # with older clang
# - {compiler: '12', standard: '20'}
# - {compiler: '11', standard: '20'}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: true
# - name: Install
# run: |
# sudo apt-add-repository ppa:ubuntu-toolchain-r/test
# sudo apt-get update
# sudo apt-get install libboost-test-dev
# sudo apt-get install language-pack-fr # test serializer w/ locale
# sudo apt-get install clang-${{ matrix.compiler }}
# - name: Configure
# run: |
# mkdir build && cd build
# cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_C_COMPILER=clang-${{ matrix.compiler }} -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
# - name: Build
# run: |
# cd build && cmake --build .
# - name: Test
# run: |
# cd build && ctest --output-on-failure
# build-linux-old-gcc:
# runs-on: Ubuntu-20.04
# strategy:
# matrix:
# compiler: ['g++-8', 'g++-7']
# standard: ['11', '14', '17', '20']
# unreleased: ['ON', 'OFF']
# exclude:
# - {compiler: 'g++-7', standard: '20'}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: true
# - name: Install
# run: |
# sudo apt-add-repository ppa:ubuntu-toolchain-r/test
# sudo apt-get update
# sudo apt-get install libboost-test-dev
# sudo apt-get install language-pack-fr # test serializer w/ locale
# sudo apt-get install ${{ matrix.compiler }}
# - name: Configure
# run: |
# mkdir build && cd build
# if [[ "${{ matrix.compiler }}" == "g++-8" && ( "${{ matrix.standard }}" == "17" || "${{ matrix.standard }}" == "20" ) ]] ; then
# cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_REQUIRE_FILESYSTEM_LIBRARY=ON -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
# else
# cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
# fi
# - name: Build
# run: |
# cd build && cmake --build .
# - name: Test
# run: |
# cd build && ctest --output-on-failure
# build-linux-old-clang:
# runs-on: Ubuntu-20.04
# strategy:
# matrix:
# compiler: ['10', '9', '8', '7', '6.0']
# standard: ['11', '14', '17', '20']
# unreleased: ['ON', 'OFF']
# exclude:
# - {compiler: '6.0', standard: '20'}
# - {compiler: '7', standard: '20'}
# - {compiler: '8', standard: '20'}
# - {compiler: '9', standard: '20'}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: true
# - name: Install
# run: |
# sudo apt-add-repository ppa:ubuntu-toolchain-r/test
# sudo apt-get update
# sudo apt-get install libboost-test-dev
# sudo apt-get install language-pack-fr # test serializer w/ locale
# sudo apt-get install clang-${{ matrix.compiler }}
# - name: Configure
# run: |
# mkdir build && cd build
# cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_C_COMPILER=clang-${{ matrix.compiler }} -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
# - name: Build
# run: |
# cd build && cmake --build .
# - name: Test
# run: |
# cd build && ctest --output-on-failure
# build-osx-13-arm64:
# runs-on: macos-13-arm64
# strategy:
# matrix:
# standard: ['11', '14', '17', '20']
# unreleased: ['ON', 'OFF']
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: true
# - name: Install
# run: |
# brew install boost
# - name: Configure
# run: |
# mkdir build && cd build
# cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
# - name: Build
# run: |
# cd build && cmake --build .
# - name: Test
# run: |
# cd build && ctest --output-on-failure
build-osx-13:
runs-on: macos-13
strategy:
matrix:
standard: ['11', '14', '17', '20']
unreleased: ['ON', 'OFF']
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install
run: |
brew install boost
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
- name: Configure
run: |
mkdir build && cd build
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
cat CMakeFiles/CMakeError.log
- name: Build
run: |
cd build && cmake --build .
- name: Test
run: |
cd build && ctest --output-on-failure
build-osx-12:
runs-on: macos-12
strategy:
matrix:
standard: ['11', '14', '17', '20']
unreleased: ['ON', 'OFF']
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install
run: |
brew install boost
- name: Configure
run: |
mkdir build && cd build
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
cat CMakeFiles/CMakeError.log
- name: Build
run: |
cd build && cmake --build .
- name: Test
run: |
cd build && ctest --output-on-failure
# build-windows-msvc:
# runs-on: windows-2022
# strategy:
# matrix:
# standard: ['11', '14', '17', '20']
# config: ['Release', 'Debug']
# unreleased: ['ON', 'OFF']
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: true
# - name: Install
# run: |
# (New-Object System.Net.WebClient).DownloadFile("https://github.com/actions/boost-versions/releases/download/1.72.0-20200608.4/boost-1.72.0-win32-msvc14.2-x86_64.tar.gz", "$env:TEMP\\boost.tar.gz")
# 7z.exe x "$env:TEMP\\boost.tar.gz" -o"$env:TEMP\\boostArchive" -y | Out-Null
# 7z.exe x "$env:TEMP\\boostArchive" -o"$env:TEMP\\boost" -y | Out-Null
# Push-Location -Path "$env:TEMP\\boost"
# Invoke-Expression .\\setup.ps1
# - uses: ilammy/msvc-dev-cmd@v1
# - name: Configure
# shell: cmd
# run: |
# file --mime-encoding tests/test_literals.cpp
# mkdir build
# cd build
# cmake ../ -G "NMake Makefiles" -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DBoost_NO_BOOST_CMAKE=ON -DBOOST_ROOT="C:\\hostedtoolcache\\windows\\Boost\\1.72.0\\x86_64" -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
# - name: Build
# working-directory: ./build
# run: |
# cmake --build . --config "${{ matrix.config }}"
# - name: Test
# working-directory: ./build
# run: |
# file --mime-encoding tests/toml/tests/example.toml
# file --mime-encoding tests/toml/tests/fruit.toml
# file --mime-encoding tests/toml/tests/hard_example.toml
# file --mime-encoding tests/toml/tests/hard_example_unicode.toml
# ctest --build-config "${{ matrix.config }}" --output-on-failure