From 57bcb074c9f33e4780be965bd91248d965c39314 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Tue, 14 May 2024 20:12:21 +0800 Subject: [PATCH] fix --- .github/workflows/ci-macos.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 23e7dec266..0f758f1bea 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -8,6 +8,12 @@ on: # Allows you to run this workflow manually from the Actions tab. workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled' + required: false + default: false env: VNOTE_VER: 3.17.0 @@ -80,6 +86,11 @@ jobs: cmake --build . --target pack working-directory: ${{runner.workspace}}/build + # Enable tmate debugging of manually-triggered workflows if the input option was provided + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} + - name: Archive Artifacts uses: actions/upload-artifact@v2 with: