Skip to content

Commit

Permalink
fix: Update Windows build workflow to dynamically set DEBUG_MODE base…
Browse files Browse the repository at this point in the history
…d on input
  • Loading branch information
bl4ckswordsman committed Nov 11, 2024
1 parent 243478f commit f4f7577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test_build_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
- name: Build executable
run: |
# Replace the DEBUG_MODE line in the spec file
(Get-Content disco_beacon_win_test.spec) -replace 'DEBUG_MODE = False', 'DEBUG_MODE = ${{ inputs.debug_mode }}' | Set-Content disco_beacon_win_test.spec
$debug_value = if (${{ inputs.debug_mode }}) { "True" } else { "False" }
(Get-Content disco_beacon_win_test.spec) -replace 'DEBUG_MODE = (?:True|False)', "DEBUG_MODE = $debug_value" | Set-Content disco_beacon_win_test.spec
pyinstaller --clean disco_beacon_win_test.spec
- name: Upload test artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit f4f7577

Please sign in to comment.