1919 id : strings
2020 shell : bash
2121 run : |
22- echo "build-output-dir=${{ github.workspace }}\build" >> "$GITHUB_OUTPUT"
22+ echo "build-type=Release" >> "$GITHUB_OUTPUT"
23+ echo "build-dir=${{ github.workspace }}\build" >> "$GITHUB_OUTPUT"
24+ echo "out-dir=${{ github.workspace }}\build\output" >> "$GITHUB_OUTPUT"
25+ echo "bin-dir=${{ github.workspace }}\build\output\bin" >> "$GITHUB_OUTPUT"
2326
2427 - name : Install Qt
2528 uses : jurplel/install-qt-action@v3
@@ -29,38 +32,54 @@ jobs:
2932 target : ' desktop'
3033 arch : ' win64_msvc2022_64'
3134
32- - name : Configure CMake
35+ - name : CMake Configure
3336 run : >
34- cmake -B ${{ steps.strings.outputs.build-output- dir }}
37+ cmake -B ${{ steps.strings.outputs.build-dir }}
3538 -DCMAKE_CXX_COMPILER=cl
3639 -DCMAKE_C_COMPILER=cl
37- -DCMAKE_BUILD_TYPE=Release
40+ -DCMAKE_BUILD_TYPE=${{ steps.strings.outputs.build-type }}
3841 -S ${{ github.workspace }}
3942
40- - name : Build
41- run : cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release
43+ - name : CMake Build
44+ run : >
45+ cmake --build ${{ steps.strings.outputs.build-dir }}
46+ --config ${{ steps.strings.outputs.build-type }}
47+
48+ - name : CMake Install
49+ run : >
50+ cmake --install ${{ steps.strings.outputs.build-dir }}
51+ --config ${{ steps.strings.outputs.build-type }}
52+ --prefix ${{ steps.strings.outputs.out-dir }}
4253
4354 - name : Get Qt Dependency Libs
44- run : windeployqt --release --no-translations ${{ steps.strings.outputs.build-output-dir }}\Release\qlogexplorer.exe
55+ run : windeployqt --release --no-translations ${{ steps.strings.outputs.bin-dir }}\qlogexplorer.exe
56+
57+ - name : Create Zip archive
58+ run : >
59+ Compress-Archive
60+ -Path ${{ steps.strings.outputs.bin-dir }}\*
61+ -DestinationPath ${{ steps.strings.outputs.out-dir }}\QLogExplorer-Win64-Portable.zip
4562
46- - name : Build Installed
63+ - name : Build Installer Application
4764 uses : Minionguyjpro/Inno-Setup-Action@v1.2.7
4865 with :
4966 path : packaging/win/innosetup.iss
5067 options : |
5168 /O+
5269 /DSrcDir=${{ github.workspace }}
53- /DBuildBinDir =${{ steps.strings.outputs.build-output- dir }}\Release
70+ /DOutBinDir =${{ steps.strings.outputs.bin- dir }}
5471
55- - name : Upload installer as artifact
72+ - name : Upload Artifact
5673 if : github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request'
5774 uses : actions/upload-artifact@v4
5875 with :
59- name : QLogExplorer-Installer
60- path : ${{ steps.strings.outputs.build-output- dir }}\Release\QLogExplorer-Win64-Setup.exe
76+ name : QLogExplorer-Bundle
77+ path : ${{ steps.strings.outputs.bin- dir }}\*
6178
6279 - name : Publish GitHub Release
6380 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
6481 uses : softprops/action-gh-release@v2
6582 with :
66- files : ${{ steps.strings.outputs.build-output-dir }}\Release\QLogExplorer-Win64-Setup.exe
83+ files : |
84+ ${{ steps.strings.outputs.bin-dir }}\QLogExplorer-Win64-Setup.exe
85+ ${{ steps.strings.outputs.out-dir }}\QLogExplorer-Win64-Portable.zip
0 commit comments