8000 ci: update nightlies · russell/libgit2@235f8e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 235f8e2

Browse files
committed
ci: update nightlies
There's been drift in our nightly builds vs our main builds. Unfortunately, sharing steps remains clunky with our matrix-heavy setup. So this remains copy-pasta.
1 parent 0589ba6 commit 235f8e2

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,23 +364,48 @@ jobs:
364364
working-directory: ${{ env.docker-config-path }}
365365
if: matrix.platform.container.name != ''
366366
- 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 }} .
368372
working-directory: ${{ env.docker-config-path }}
369373
if: matrix.platform.container.name != '' && env.docker-container-exists != 'true'
370374
- name: Prepare build
371375
run: mkdir build
372376
- name: Build
373377
uses: ./source/.github/actions/run-build
374378
with:
375-
command: cd build && ../source/ci/build.sh
379+
command: cd ${BUILD_WORKSPACE:-.}/build && ../source/ci/build.sh
376380
container: ${{ matrix.platform.container.name }}
377381
container-version: ${{ env.docker-registry-container-sha }}
382+
shell: ${{ matrix.platform.shell }}
378383
- name: Test
379384
uses: ./source/.github/actions/run-build
380385
with:
381-
command: cd build && ../source/ci/test.sh
386+
command: cd ${BUILD_WORKSPACE:-.}/build && ../source/ci/test.sh
382387
container: ${{ matrix.platform.container.name }}
383388
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'
384409

385410
coverity:
386411
# Only run scheduled workflows on the main repository; prevents people

0 commit comments

Comments
 (0)
0