Skip to content

Commit fdb28a4

Browse files
committed
added portable
1 parent 069201a commit fdb28a4

File tree

2 files changed

+30
-25
lines changed

2 files changed

+30
-25
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -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:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ project(aui_app
66

77
option(BUILD_SHARED_LIBS "Build shared libs" OFF)
88

9-
set(AUI_VERSION fb381937a2879c29c3861da3612889994315621e)
9+
set(AUI_VERSION c3638d7ac10ccf306bfbcf673ee27c92287b76a5)
1010

1111
# Use AUI.Boot
1212
file(

0 commit comments

Comments
 (0)