From f7b2036a92c32c2b983bc957ec907587c42781c5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 5 Dec 2022 23:27:01 +0100 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ac8c7018c..b9ab868b22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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