diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 968cf4630..105f2493c 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -3,6 +3,12 @@ name: CI Linux on: workflow_call: workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled' + required: false + default: false pull_request: merge_group: push: @@ -51,8 +57,9 @@ jobs: - name: Install deps run: | + dnf install -y almalinux-release-devel epel-release yum remove -y openssl-devel zlib-devel || true - yum install -y protobuf-devel protobuf-compiler + yum install -y protobuf-devel protobuf-compiler tmate - name: Sync source deps run: | @@ -95,6 +102,13 @@ jobs: path: ${{ env.CACHE_DIR }} key: ${{ env.CACHE_KEY }} + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3.18 + with: + limit-access-to-actor: true + install-dependencies: false + test_linux: name: E2E Test linux needs: build_and_ctest diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index cf05c9376..ab17987b4 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -3,6 +3,12 @@ name: CI MacOS on: workflow_call: workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled' + required: false + default: false pull_request: merge_group: push: @@ -89,3 +95,9 @@ jobs: with: path: ${{ env.CACHE_DIR }} key: ${{ env.CACHE_KEY }} + + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3.18 + with: + limit-access-to-actor: true diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index de71a4f9a..3c99527ee 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -3,6 +3,12 @@ name: CI Windows on: workflow_call: workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled' + required: false + default: false pull_request: merge_group: push: @@ -98,6 +104,12 @@ jobs: path: ${{ env.CACHE_DIR }} key: ${{ env.CACHE_KEY }} + - name: Setup tmate session + if: ${{ failure() && inputs.debug_enabled }} + uses: mxschmitt/action-tmate@v3.18 + with: + limit-access-to-actor: true + test_windows: name: E2E Test windows runs-on: windows-phoenix