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
|
name: CI
on:
push:
branches:
- develop
pull_request:
schedule:
- cron: '0 0 1 * *'
jobs:
Linux:
name: Ubuntu 18.04
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
compiler: [clang++, g++, clang++-11, arm-linux-gnueabihf-g++-8]
configuration: [error_code, status_code]
env:
NAME: Linux-${{ matrix.configuration }}-${{ matrix.compiler }}
CXX: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v2
- name: CMake tests Linux
shell: bash
run: |
sudo apt-get remove -y libstdc++-10-dev g++-10 gcc-10
sudo apt-get autoremove
if [ "${{ matrix.compiler }}" = "clang++-11" ]; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -;
sudo add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main";
sudo apt update;
sudo apt install clang-11 libc++-11-dev libc++abi-11-dev libomp-11-dev;
export CMAKE_CONFIGURE_OPTIONS=-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-linux-libc++.cmake;
fi
if [ "${{ matrix.configuration }}" = "status_code" ]; then
export CMAKE_CONFIGURE_OPTIONS="$CMAKE_CONFIGURE_OPTIONS -DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON";
fi
if [ "${{ matrix.compiler }}" = "arm-linux-gnueabihf-g++" ]; then
sudo apt install g++-8-arm-linux-gnueabihf;
ctest -S .ci.cmake -VV --timeout 600 -DCTEST_DISABLE_TESTING=1 '-DCTEST_CONFIGURE_OPTIONS=$CMAKE_CONFIGURE_OPTIONS -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-linux-arm.cmake';
else
echo Configure options are '$CMAKE_CONFIGURE_OPTIONS'
ctest -S .ci.cmake -VV --timeout 600 -DCTEST_CONFIGURE_OPTIONS=$CMAKE_CONFIGURE_OPTIONS;
fi
- name: Upload Prebuilt Binaries
uses: actions/upload-artifact@v2
with:
name: Linux ${{ matrix.configuration }} ${{ matrix.compiler }} prebuilt binaries
path: llfio-v2.0-binaries-linux-x64.tgz
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Linux ${{ matrix.configuration }} ${{ matrix.compiler }} test results
path: prebuilt/merged_junit_results.xml
MacOS:
name: Mac OS 10.15
runs-on: macos-10.15
strategy:
fail-fast: false
matrix:
configuration: [error_code, status_code]
env:
NAME: MacOS-${{ matrix.configuration }}
steps:
- uses: actions/checkout@v2
- name: CMake tests Mac OS
shell: bash
run: |
if [ "${{ matrix.configuration }}" = "status_code" ]; then
export CMAKE_CONFIGURE_OPTIONS="$CMAKE_CONFIGURE_OPTIONS -DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON"
fi
ctest -S .ci.cmake -VV -E noexcept --timeout 600 -DCTEST_CONFIGURE_OPTIONS=$CMAKE_CONFIGURE_OPTIONS
- name: Upload Prebuilt Binaries
uses: actions/upload-artifact@v2
with:
name: Mac OS ${{ matrix.configuration }} prebuilt binaries
path: llfio-v2.0-binaries-darwin-x64.tgz
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Mac OS ${{ matrix.configuration }} test results
path: prebuilt/merged_junit_results.xml
WinVS2019:
name: Windows VS2019
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
configuration: [error_code, status_code]
env:
NAME: WinVS2019-${{ matrix.configuration }}
steps:
- uses: actions/checkout@v2
- name: CMake tests Windows
shell: bash
run: |
if [ "${{ matrix.configuration }}" = "status_code" ]; then
export CMAKE_CONFIGURE_OPTIONS="$CMAKE_CONFIGURE_OPTIONS -DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON"
fi
ctest -S .ci.cmake -VV --timeout 600 -DCTEST_CONFIGURE_OPTIONS=$CMAKE_CONFIGURE_OPTIONS
- name: Upload Prebuilt Binaries
uses: actions/upload-artifact@v2
with:
name: Windows VS2019 ${{ matrix.configuration }} prebuilt binaries
path: llfio-v2.0-binaries-win64.zip
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Windows VS2019 ${{ matrix.configuration }} test results
path: prebuilt/merged_junit_results.xml
publish-test-results:
name: "Publish Documentation and Unit Tests Results"
needs: [Linux, MacOS, WinVS2019]
runs-on: ubuntu-latest
if: success() || failure()
env:
NAME: Documentation
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: artifacts
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.3
with:
check_name: Unit Test Results
github_token: ${{ secrets.GITHUB_TOKEN }}
files: '**/merged_junit_results.xml'
- name: Checkout Documentation
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Regenerate Documentation
shell: bash
run: |
sudo apt-get install -y doxygen graphviz
ctest -S .docs.cmake -V
- name: Publish Documentation
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: doc/html
CLEAN: true
installability:
name: "Installability"
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macos-10.15, windows-2019]
configuration: [error_code, status_code]
env:
NAME: Install-${{ matrix.os }}-${{ matrix.configuration }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install
shell: bash
run: |
if [ "${{ matrix.configuration }}" = "status_code" ]; then
export CMAKE_CONFIGURE_OPTIONS="$CMAKE_CONFIGURE_OPTIONS -DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON"
fi
git clone --depth 1 https://github.com/ned14/quickcpplib.git
pip install --user gitpython
python quickcpplib/scripts/test_cpp-pm_install.py test-packaging/example.cpp quickcpplib quickcpplib::hl https://github.com/ned14/quickcpplib master outcome outcome::hl https://github.com/ned14/outcome better_optimisation llfio llfio::sl https://github.com/ned14/llfio master
cd test_cpp-pm_install
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release $CMAKE_CONFIGURE_OPTIONS
cmake --build .
programs:
name: "Programs"
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macos-10.15, windows-2019]
env:
NAME: Programs-${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Build
shell: bash
run: |
cd programs
mkdir build
cd build
cmake .. $CMAKE_CONFIGURE_OPTIONS -DCMAKE_BUILD_TYPE=Release
cmake --build .
|