-
Notifications
You must be signed in to change notification settings - Fork 40
369 lines (336 loc) · 10.1 KB
/
docker-builds.yml
File metadata and controls
369 lines (336 loc) · 10.1 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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
name: Test Build Docker Images
on:
push:
branches:
- '*'
paths-ignore:
- '**.md'
pull_request:
branches:
- '*'
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-22.04-8c-32g-300h') || 'ubuntu-latest' }}
env:
DOCKER_CLI_EXPERIMENTAL: enabled
DOCKER_BUILDKIT: '1'
strategy:
# Don't let a failure for one year affect the others
fail-fast: false
matrix:
include:
- group: vfx-2026
name: vfx-2026
common_version: 6-clang20
common_version_noclang: 6
version: 2026-clang20
version_noclang: 2026
test: ""
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Activate Docker buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
with:
driver-opts: env.BUILDKIT_STEP_LOG_MAX_SIZE=10485760
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.9"
- name: Install uv
uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0
with:
enable-cache: auto
- name: Install aswfdocker and dependencies
run: uv sync
- name: Free up disk space
run: |
df -h
sudo apt-get remove -y '^llvm-.*' '^php.*' '^php8.*' '^cpp.*' '^g\+\+.*' '^clang.*' '^gfortran.*' \
'^dotnet-.*' '^libmono-.*' '^mono-.*' monodoc-http '^r-.*' '^ruby.*' \
ant ant-optional aria2 azure-cli firefox google-chrome-stable microsoft-edge-stable powershell \
imagemagick '^imagemagick-.*' '^libmagickcore-.*' '^libmagickwand-.*' kubectl mercurial mercurial-common subversion
sudo apt-get autoremove -y
sudo apt-get clean
sudo rm -rf \
/usr/share/dotnet/ \
/usr/local/lib/android \
/opt/ghc \
/usr/local/share/powershell \
/usr/share/swift \
/usr/local/.ghcup \
/usr/local/aws-cli \
/usr/local/aws-sam-cli \
/usr/local/julia* \
/usr/lib/jvm || true
sudo docker system prune -a
df -h
dpkg -l
- name: Build Conan Builder Image
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type IMAGE \
--group baseos-gl-conan \
--version ${{ matrix.common_version_noclang }} \
--push NO
- name: Build common wrappers (Conan)
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group common-wrappers \
--version ${{ matrix.common_version_noclang }} \
--build-missing \
--push NO
- name: Build Ninja and CMake (Conan)
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group common \
--version ${{ matrix.common_version_noclang }} \
--build-missing \
--target ninja \
--target cmake \
--push NO
- name: Build Clang (Conan)
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group common \
--version ${{ matrix.common_version }} \
--build-missing \
--target clang \
--push NO
- name: Build ci-common Docker Image for downstream images
run: |
uv run aswfdocker \
--verbose \
build \
--ci-image-type IMAGE \
--group common \
--version ${{ matrix.common_version }}\
--push NO
- name: Build base1 system wrapper packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group base1-wrappers \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build base1 level 1 Conan packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group base1-1 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build base1 level 2 Conan packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group base1-2 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build base1 level 3 Conan packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group base1-3 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build base2 system wrapper Conan packages for ci-baseqt image
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group base2-wrappers \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build base2 system Conan packages for ci-baseqt image
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group base2-1 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build base2 level 2 Conan packages (Qt) for ci-baseqt image
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group base2-2 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build base3 Conan packages (PySide) for base image
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group base3 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build base and baseqt images
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type IMAGE \
--group base \
--version ${{ matrix.version }} \
--push NO
- name: Build vfx1 system wrapper Conan packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group vfx1-wrappers \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build vfx1 level 1 Conan packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group vfx1-1 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build vfx1 level 2 Conan packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group vfx1-2 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build vfx1 level 3 Conan packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group vfx1-3 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build vfx1 level 4 Conan packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group vfx1-4 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build vfx1 level 5 Conan packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group vfx1-5 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build vfx1 level 6 Conan packages
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type PACKAGE \
--group vfx1-6 \
--version ${{ matrix.version_noclang }} \
--build-missing \
--push NO
- name: Build vfx1 / vfx2 images
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type IMAGE \
--group vfx1 \
--group vfx2 \
--version ${{ matrix.version_noclang }} \
--push NO
- name: Build vfx images
run: |
set -ex
uv run aswfdocker \
--verbose \
build \
--ci-image-type IMAGE \
--group vfx3 \
--version ${{ matrix.version }} \
--push NO
- run: |
set -ex
export DOCKER_ORG=`uv run aswfdocker --repo-uri $GITHUB_REPOSITORY --source-branch $GITHUB_REF getdockerorg`
test_script=scripts/tests/${{ matrix.version }}/test_${{ matrix.test }}.sh
if [ -f $test_script ]
then
echo "Going to run ${test_script}"
echo "docker run -i --rm ${DOCKER_ORG}/ci-${{ matrix.test }}:${{ matrix.version }} run < ${test_script}"
docker run -i --rm \
-v $(Pipeline.Workspace)/cache/ci-image_${{ matrix.name }}_${{ matrix.version }}/ccache:/tmp/ccache \
${DOCKER_ORG}/ci-${{ matrix.test }}:${{ matrix.version }} run < ${test_script}
else
echo "No test script found $test_script"
fi
name: Run test script ${{ matrix.version }}/test_${{ matrix.test }}.sh to check Docker image
if: ${{ matrix.test != '' }}