Skip to content

Commit

Permalink
CI: Allow running tmate on manually triggered runs
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonMatthesKDAB committed Feb 19, 2025
1 parent f428879 commit 463cd07
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/github-cxx-qt-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ on:
# Run daily at 01:01
# This ensures CI still works and ensures the cache remains active
- cron: "1 1 * * *"
workflow_dispatch:
inputs:
tmate_debugging:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false

# Cancel any previous runs for the same pull request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
Expand Down Expand Up @@ -494,6 +502,11 @@ jobs:
if: runner.os == 'Windows'
uses: seanmiddleditch/gha-setup-vsdevenv@v4

# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Setup tmate session
if: ${{ github.event_name == 'workflow_dispatch' && inputs.tmate_debugging }}
uses: mxschmitt/action-tmate@v3

# Ninja is required on Windows for CMAKE_CXX_COMPILER_LAUNCHER to work for using sccache.
- name: "Configure"
run: >-
Expand Down

0 comments on commit 463cd07

Please sign in to comment.