-
Notifications
You must be signed in to change notification settings - Fork 15
229 lines (185 loc) · 6.56 KB
/
daggy-github-actions.yaml
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
name: Daggy Build
on:
push:
tags:
- v*
pull_request:
jobs:
linux-gcc12_x64:
runs-on: ubuntu-latest
container:
image: docker.io/synacker2/daggy_gcc12
env:
NOT_ON_C3I: 1
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache conan packages
uses: actions/cache@v3
id: conan-data-gcc12
with:
path: ~/.conan2/p
key: conan-data-gcc12
- run: conan --version
- run: conan profile detect
- name: Conan config
run: conan config install CI/conan
- name: Conan install
run: conan install . --build=missing --profile:build=linux-gcc12_x64 --profile:host=linux-gcc12_x64 --output-folder=.
- name: Conan cache clean
run: conan cache clean "*" --source --build --temp --download
- name: git add safe dir
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Conan build
run: conan build . --profile:build=linux-gcc12_x64 --profile:host=linux-gcc12_x64 --build=missing --output-folder=.
- name: Tests
working-directory: build/Release
run: ctest -C Release --output-on-failure --output-junit tests/local_tests.xml
- name: linux-gcc12_x64 Tests Report
uses: mikepenz/action-junit-report@v4
with:
report_paths: build/Release/tests/local_tests.xml
summary: linux-gcc12_x64 Tests Report
- name: Packaging
working-directory: build/Release
run: cpack
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: daggy_linux_x64
path: |
build/Release/*.deb
build/Release/*.rpm
build/Release/*.zip
win-msvc193_x64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache conan packages
uses: actions/cache@v3
id: conan-data-msvc
with:
path: |
~/.conan2/p
c:\.conan2\
key: conan-data-msvc
- name: Cache QtIFW
uses: actions/cache@v3
id: qt-ifw4
with:
path: C:\QtIFW
key: qt-ifw4
- name: Cache vc_redist
uses: actions/cache@v3
id: vc_redist17
with:
path: ~/downloads
key: vc_redist17
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
- run: pip install -r requirements.txt
- run: conan --version
- run: conan profile detect
- name: Download vc_redist
run: |
if ( -not(Test-Path ~/downloads/vc_redist-x64.exe) ) {
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -UseBasicParsing -OutFile ~/downloads/vc_redist-x64.exe 'https://aka.ms/vs/17/release/vc_redist.x64.exe'
}
ls ~/downloads
- name: Make build dir
run: mkdir build
- name: Move vc_redist
run: mv ~/downloads/vc_redist-x64.exe build/
- name: Install QtIFW
run: |
if ( -not(Test-Path C:\QtIFW) ) {
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -UseBasicParsing -OutFile ~/QtInstallerFramework-win-x86.exe 'https://download.qt.io/official_releases/qt-installer-framework/4.6.0/QtInstallerFramework-windows-x64-4.6.0.exe'
~/QtInstallerFramework-win-x86.exe --am --al -c --root C:\QtIFW install
}
ls C:\QtIFW
- name: Conan config
run: conan config install CI/conan
- name: Conan install
run: conan install . --build=missing --profile:build=win-msvc193_x64 --profile:host=win-msvc193_x64 -of .
- name: Conan cache clean
working-directory: build
run: conan cache clean "*" --source --build --temp --download
- name: git add safe dir
run: git config --global --add safe.directory %GITHUB_WORKSPACE%
- name: Conan build
run: conan build . --profile:build=win-msvc193_x64 --profile:host=win-msvc193_x64 --build=missing -of .
- name: Tests
working-directory: build
run: ctest -C Release --output-on-failure --output-junit tests/local_tests.xml
- name: win-msvc193_x64 Tests Report
uses: mikepenz/action-junit-report@v4
with:
report_paths: build/Release/tests/local_tests.xml
summary: win-msvc193_x64 Tests Report
- name: Packaging
working-directory: build
run: cpack
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: daggy_win_x64
path: |
build/*.exe
build/*.zip
macos-clang13_x64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache conan packages
uses: actions/cache@v3
id: conan-data-clang
with:
path: ~/.conan2/p
key: conan-data-clang
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
- run: pip install -r requirements.txt
- run: conan --version
- run: conan profile detect
- name: Conan config
run: conan config install CI/conan
- name: Conan install
run: conan install . --build=missing --profile:build=macos-clang13_x64 --profile:host=macos-clang13_x64 -of .
- name: Conan remove build folders
run: conan cache clean "*" --source --build --temp --download
- name: Conan build
run: conan build . --profile:build=macos-clang13_x64 --profile:host=macos-clang13_x64 --build=missing -of .
- name: daggy version
working-directory: build/Release
run: bin/daggy --version
- name: Tests
working-directory: build/Release
run: ctest -C Release --output-on-failure --output-junit tests/local_tests.xml
- name: macos-clang13_x64 Tests Report
uses: mikepenz/action-junit-report@v4
with:
report_paths: build/Release/tests/local_tests.xml
summary: macos-clang13_x64 Tests Report
- name: Packaging
working-directory: build/Release
run: cpack
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: daggy_macos_x64
path: |
build/Release/*.dmg
build/Release/*.zip