From a1c0318fc1264a9b5574502450d63411087a2127 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 26 Feb 2025 17:26:50 +0100 Subject: [PATCH] TO-DROP: debug again Signed-off-by: Johannes Schindelin --- .github/workflows/main.yml | 46 ++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9d5756debfea04..71995d27046b2c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,28 +19,40 @@ concurrency: group: ${{ github.sha }} jobs: - windows-meson-build: - name: win+Meson build - runs-on: windows-latest + dockerized: + name: ${{matrix.vector.jobname}} (${{matrix.vector.image}}) concurrency: - group: windows-meson-build-${{ github.ref }} + group: dockerized-${{ matrix.vector.jobname }}-${{ matrix.vector.image }}-${{ github.ref }} + strategy: + fail-fast: false + matrix: + vector: + - jobname: linux-musl-meson + image: alpine:latest + env: + jobname: ${{matrix.vector.jobname}} + CC: ${{matrix.vector.cc}} + CI_JOB_IMAGE: ${{matrix.vector.image}} + runs-on: ubuntu-latest + container: ${{matrix.vector.image}} steps: + - name: prepare libc6 for actions + if: matrix.vector.jobname == 'linux32' + run: apt -q update && apt -q -y install libc6-amd64 lib64stdc++6 - uses: mxschmitt/action-tmate@v3 with: detached: true - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - - name: Set up dependencies - shell: pwsh - run: pip install meson ninja - - name: Setup - shell: pwsh - run: meson setup build -Dperl=disabled - - name: Compile - shell: pwsh - run: meson compile -C build - - name: Upload build artifacts + - run: ci/install-dependencies.sh + - run: useradd builder --create-home + - run: chown -R builder . + - run: sudo --preserve-env --set-home --user=builder ci/run-build-and-tests.sh + - name: print test failures + if: failure() && env.FAILED_TEST_ARTIFACTS != '' + run: sudo --preserve-env --set-home --user=builder ci/print-test-failures.sh + - name: Upload failed tests' directories + if: failure() && env.FAILED_TEST_ARTIFACTS != '' uses: actions/upload-artifact@v4 with: - name: windows-meson-artifacts - path: build + name: failed-tests-${{matrix.vector.jobname}} + path: ${{env.FAILED_TEST_ARTIFACTS}}