@@ -44,57 +44,62 @@ jobs:
4444 ${{ runner.os }}-
4545
4646 - name : Install Linux dependencies
47- if : matrix .os == 'ubuntu-latest '
47+ if : runner .os == 'Linux '
4848 run : sudo apt-get update && sudo apt-get install pkg-config libglew-dev zlib1g-dev libssl-dev libcrypt-dev libcurl4-openssl-dev libgtk-3-dev libfontconfig-dev ninja-build libpulse-dev
4949
5050 - name : Install macos dependencies
51- if : matrix .os == 'macos-latest'
51+ if : runner .os == 'macos-latest'
5252 run : brew install ninja
5353
5454 - name : Configure CMake
5555 run : cmake -G "${{ matrix.os=='windows-2019' && 'Visual Studio 16 2019' || 'Ninja' }}" -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=RelWithDebInfo ${{matrix.additional_cmake_flags}} -DAUI_INSTALL_RUNTIME_DEPENDENCIES=TRUE
5656
57- - name : Configure CPack (Windows)
58- if : matrix.os == 'windows-2019'
59- run : cmake -B ${{github.workspace}}/build -DCPACK_GENERATOR=INNOSETUP
60-
61- - name : Configure CPack (Linux)
62- if : matrix.os == 'ubuntu-latest'
63- run : cmake -B ${{github.workspace}}/build -DCPACK_GENERATOR=TGZ
64-
6557 - name : Build Project
6658 run : cmake --build ${{github.workspace}}/build --config RelWithDebInfo
6759
6860 - name : Build Tests
6961 run : cmake --build ${{github.workspace}}/build --config RelWithDebInfo --target Tests
7062
7163 - name : Run Tests (Windows)
72- if : matrix .os == 'windows-2019 '
64+ if : runner .os == 'Windows '
7365 working-directory : ${{github.workspace}}/build/bin/RelWithDebInfo/
7466 run : ${{github.workspace}}/build/bin/RelWithDebInfo/Tests.exe
7567
7668 - name : Run Tests (Linux and macOS)
77- if : matrix .os == 'ubuntu-latest '
69+ if : runner .os == 'Linux '
7870 working-directory : ${{github.workspace}}/build/bin
7971 run : ${{github.workspace}}/build/bin/Tests
8072
81- - name : Pack
73+ - name : Configure CPack (Windows)
74+ if : runner.os == 'Windows'
75+ run : cmake -B ${{github.workspace}}/build -DCPACK_GENERATOR=INNOSETUP
76+
77+ - name : Pack Windows Setup
78+ if : runner.os == 'Windows'
8279 working-directory : ${{github.workspace}}/build
83- run : cpack . -CRelWithDebInfo
80+ run : |
81+ cmake . -DAUI_APP_PACKAGING=INNOSETUP
82+ cpack . -CRelWithDebInfo -B artifacts
8483
85- - name : Upload (Windows)
86- if : matrix.os == 'windows-2019'
87- uses : actions/upload-artifact@v4
88- with :
89- path : ${{github.workspace}}/build/*.exe
90- name : ${{ matrix.os }}
84+ - name : Pack Windows Portable
85+ if : runner.os == 'Windows'
86+ working-directory : ${{github.workspace}}/build
87+ run : |
88+ cmake . -DAUI_APP_PACKAGING=PORTABLE
89+ cpack . -CRelWithDebInfo -B artifacts
90+
91+ - name : Pack Linux Portable
92+ if : runner.os == 'Linux'
93+ working-directory : ${{github.workspace}}/build
94+ run : |
95+ cmake . -DAUI_APP_PACKAGING=PORTABLE
96+ cpack . -CRelWithDebInfo -B artifacts
9197
92- - name : Upload (Linux)
93- if : matrix.os == 'ubuntu-latest'
98+ - name : Upload
9499 uses : actions/upload-artifact@v4
95100 with :
96- path : ${{github.workspace}}/build/*.gz
97- name : ${{ matrix .os }}
101+ path : ${{github.workspace}}/build/artifacts/*
102+ name : ${{ runner .os }}
98103
99104
100105 release-draft :
0 commit comments