@@ -364,23 +364,48 @@ jobs:
364
364
working-directory : ${{ env.docker-config-path }}
365
365
if : matrix.platform.container.name != ''
366
366
- name : Create container
367
- run : docker build -t ${{ env.docker-registry-container-sha }} -f ${{ env.dockerfile }} .
367
+ run : |
368
+ if [ "${{ matrix.container.base }}" != "" ]; then
369
+ BASE_ARG="--build-arg BASE=${{ matrix.container.base }}"
370
+ fi
371
+ docker build -t ${{ env.docker-registry-container-sha }} --build-arg UID=$(id -u) --build-arg GID=$(id -g) ${BASE_ARG} -f ${{ env.dockerfile }} .
368
372
working-directory : ${{ env.docker-config-path }}
369
373
if : matrix.platform.container.name != '' && env.docker-container-exists != 'true'
370
374
- name : Prepare build
371
375
run : mkdir build
372
376
- name : Build
373
377
uses : ./source/.github/actions/run-build
374
378
with :
375
- command : cd build && ../source/ci/build.sh
379
+ command : cd ${BUILD_WORKSPACE:-.}/ build && ../source/ci/build.sh
376
380
container : ${{ matrix.platform.container.name }}
377
381
container-version : ${{ env.docker-registry-container-sha }}
382
+ shell : ${{ matrix.platform.shell }}
378
383
- name : Test
379
384
uses : ./source/.github/actions/run-build
380
385
with :
381
- command : cd build && ../source/ci/test.sh
386
+ command : cd ${BUILD_WORKSPACE:-.}/ build && ../source/ci/test.sh
382
387
container : ${{ matrix.platform.container.name }}
383
388
container-version : ${{ env.docker-registry-container-sha }}
389
+ shell : ${{ matrix.platform.shell }}
390
+ - name : Upload test results
391
+ uses : actions/upload-artifact@v3
392
+ if : success() || failure()
393
+ with :
394
+ name : test-results-${{ matrix.platform.id }}
395
+ path : build/results_*.xml
396
+
397
+ test_results :
398
+ name : Test results
399
+ needs : [ build ]
400
+ if : always()
401
+ runs-on : ubuntu-latest
402
+ steps :
403
+ - name : Download test results
404
+ uses : actions/download-artifact@v3
405
+ - name : Generate test summary
406
+ uses : test-summary/action@v2
407
+ with :
408
+ paths : ' test-results-*/*.xml'
384
409
385
410
coverity :
386
411
# Only run scheduled workflows on the main repository; prevents people
0 commit comments