Skip to content

Commit

Permalink
Deploy portable Windows application archive (#1857)
Browse files Browse the repository at this point in the history
* Set flag portable windows application archive deployment
* Add timeout for all installer test and set QT_DEBUG_PLUGINS=1 for diagnostics
  • Loading branch information
MinyazevR authored Dec 18, 2024
1 parent b3e0da1 commit b3a4243
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
- name: Prepare environment variable
run: |
echo "QT_QPA_PLATFORM=offscreen" >> $GITHUB_ENV
echo "QT_DEBUG_PLUGINS=1" >> $GITHUB_ENV
TWOD_EXEC_NAME=$(ls -1d "$BIN_DIR"/2D-model* | head -n 1) && echo "TWOD_EXEC_NAME=$TWOD_EXEC_NAME" >> $GITHUB_ENV
PATCHER_NAME=$(ls -1d "$BIN_DIR"/patcher* | head -n 1) && echo "PATCHER_NAME=$PATCHER_NAME" >> $GITHUB_ENV
if [[ "$RUNNER_OS" != "Windows" ]]; then
Expand All @@ -120,6 +121,7 @@ jobs:
run: |
for i in "$GITHUB_WORKSPACE"/testing_small/*; do "$TWOD_EXEC_NAME" --close -s 5 "$i"; done
rm -rf tests.7z testing_small
timeout-minutes: 15

- name: Downloads minimal tests for script mode
run: |
Expand All @@ -131,21 +133,25 @@ jobs:
for i in "$GITHUB_WORKSPACE"/tests/*.qrs; do "$TWOD_EXEC_NAME" --generate-path "$i".js --generate-mode javascript --close \
-s 5 --script-path "$i".js -m script "$i"; done
if: ${{ !startsWith(inputs.os, 'macos') }}
timeout-minutes: 15

- name: Run minimal Python interpeter tests in direct script mode
run: |
for i in "$GITHUB_WORKSPACE"/tests/*.qrs; do "$TWOD_EXEC_NAME" --generate-path "$i".py \
--close -s 5 --script-path "$i".py -m script "$i"; done
if: ${{ !startsWith(inputs.os, 'macos') }}
timeout-minutes: 15

- name: Run minimal Javascript interpeter tests as fields in .qrs (For backward compatibility)
run: |
for i in "$GITHUB_WORKSPACE"/tests/*.qrs; do "$PATCHER_NAME" -s "$i".js "$i" \
&& "$TWOD_EXEC_NAME" --close -s 5 -m script "$i"; done
if: ${{ !startsWith(inputs.os, 'macos') }}
timeout-minutes: 15

- name: Run minimal Python interpeter tests as fields in .qrs (For backward compatibility)
run: |
for i in "$GITHUB_WORKSPACE"/tests/*.qrs; do "$PATCHER_NAME" -s "$i".py "$i" \
&& "$TWOD_EXEC_NAME" --close -s 5 -m script "$i"; done
if: ${{ !startsWith(inputs.os, 'macos') }}
timeout-minutes: 15
1 change: 1 addition & 0 deletions .github/workflows/windows_build_with_installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,5 @@ jobs:
os: windows-latest
artifact_name: trik-studio-auto-installer-qt5.15
shell: msys2 {0}
deploy_archive: true
secrets: inherit

0 comments on commit b3a4243

Please sign in to comment.