Allow running CI builds with tmate enabled

Add a disabled by default step allowing to connect to CI machine via
ssh, this can be useful for debugging the problems that can't be
reproduced locally.
This commit is contained in:
Vadim Zeitlin 2022-12-05 23:27:01 +01:00
parent 934fb8c228
commit f7b2036a92

View file

@ -48,6 +48,13 @@ on:
- '*.yml'
- 'CMakeLists.txt'
- 'wxwidgets.props'
workflow_dispatch:
inputs:
debug_tests:
type: boolean
description: 'Enable ssh server before running the tests'
required: false
default: false
permissions:
contents: read
@ -271,6 +278,10 @@ jobs:
make $wxBUILD_ARGS failtest
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS"
- name: Setup tmate
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_tests }}
- name: Setup Python
if: matrix.container == ''
uses: actions/setup-python@v4