Skip to content

Commit

Permalink
tmate debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuukiy committed Aug 21, 2024
1 parent de19a5d commit a175075
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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 (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -48,21 +54,25 @@ jobs:
- name: Build with PyInstaller for windows
run: cmd.exe /c 'make.bat'

# - name: Install pytest
# run: |
# python -m pip install pytest
- name: Install pytest
run: |
python -m pip install pytest
# - name: Switch code page
# run: |
# chcp 65001
- name: Switch code page
run: |
chcp 65001
# - name: Test JavSP.exe
# run: pytest unittest/test_exe.py
- name: Test JavSP.exe
run: pytest unittest/test_exe.py

- name: Set VERSION variable for windows
run: |
echo "VERSION=$(python make\gen_ver_hook.py)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}

- name: Upload build artifact
uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit a175075

Please sign in to comment.