DEBUG with tmate #2049
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push, pull_request] | |
| env: | |
| DEVELOPER: 1 | |
| # If more than one workflow run is triggered for the very same commit hash | |
| # (which happens when multiple branches pointing to the same commit), only | |
| # the first one is allowed to run, the second will be kept in the "queued" | |
| # state. This allows a successful completion of the first run to be reused | |
| # in the second run via the `skip-if-redundant` logic in the `config` job. | |
| # | |
| # The only caveat is that if a workflow run is triggered for the same commit | |
| # hash that another run is already being held, that latter run will be | |
| # canceled. For more details about the `concurrency` attribute, see: | |
| # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency | |
| concurrency: | |
| group: ${{ github.sha }} | |
| jobs: | |
| dockerized: | |
| name: ${{matrix.vector.jobname}} (${{matrix.vector.image}}) | |
| concurrency: | |
| group: dockerized-${{ matrix.vector.jobname }}-${{ matrix.vector.image }}-${{ github.ref }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| vector: | |
| - jobname: fedora-breaking-changes-meson | |
| image: fedora:latest | |
| env: | |
| jobname: ${{matrix.vector.jobname}} | |
| CC: ${{matrix.vector.cc}} | |
| CI_JOB_IMAGE: ${{matrix.vector.image}} | |
| CUSTOM_PATH: /custom | |
| 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/detached@v3 | |
| - name: install git in container | |
| run: | | |
| if command -v git | |
| then | |
| : # nothing to do | |
| elif command -v apk | |
| then | |
| apk add --update git | |
| elif command -v dnf | |
| then | |
| dnf -yq update && dnf -yq install git | |
| else | |
| apt-get -q update && apt-get -q -y install git | |
| fi | |
| - uses: actions/checkout@v5 | |
| - run: ci/install-dependencies.sh | |
| - run: useradd builder --create-home | |
| - run: chown -R builder . | |
| - run: chmod o+w "${GITHUB_ENV%/*}" # allow `builder` to set environment variables | |
| - run: sudo --preserve-env --set-home --user=builder sh -c 'env | grep /__w/_temp/' | |
| - run: sudo --preserve-env --set-home --user=builder sh -c 'ls -la /__w/_temp/' | |
| - run: sudo --preserve-env --set-home --user=builder sh -c 'ls -la /__w/_temp/_runner_file_commands/' | |
| - 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: failed-tests-${{matrix.vector.jobname}} | |
| path: ${{env.FAILED_TEST_ARTIFACTS}} |