Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use a multi-step build for CI
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jun 5, 2023
1 parent 6c5b06f commit 46c2870
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
submodules: recursive
- name: Set up cache
id: cache
uses: actions/cache@v3
with:
path: |
Expand All @@ -39,6 +40,7 @@ jobs:
./PawPaw/bootstrap-qt.sh macos-universal
./PawPaw/.cleanup.sh macos-universal
- name: Build macOS universal
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: |
source PawPaw/local.env macos-universal
Expand Down Expand Up @@ -66,6 +68,7 @@ jobs:
with:
submodules: recursive
- name: Set up cache
id: cache
uses: actions/cache@v3
with:
path: |
Expand Down Expand Up @@ -99,12 +102,14 @@ jobs:
./PawPaw/bootstrap-qt.sh win32
./PawPaw/.cleanup.sh win32
- name: Build win32 cross-compiled
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: |
source PawPaw/local.env win32
cmake -S . -B build
$(which cmake) --build build -j $(nproc)
- name: Create zip package
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: |
source PawPaw/local.env win32
Expand Down Expand Up @@ -134,6 +139,7 @@ jobs:
with:
submodules: recursive
- name: Set up cache
id: cache
uses: actions/cache@v3
with:
path: |
Expand Down Expand Up @@ -167,12 +173,14 @@ jobs:
./PawPaw/bootstrap-qt.sh win64
./PawPaw/.cleanup.sh win64
- name: Build win64 cross-compiled
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: |
source PawPaw/local.env win64
cmake -S . -B build
$(which cmake) --build build -j $(nproc)
- name: Create zip package
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: |
source PawPaw/local.env win64
Expand Down
1 change: 0 additions & 1 deletion CMakeLists.txt
Expand Up @@ -25,7 +25,6 @@ if(NOT (APPLE OR MINGW OR WIN32))
find_package(Qt5 COMPONENTS REQUIRED X11Extras)
else()
set(X11_FOUND FALSE)
mark_as_advanced(X11_FOUND)
endif()

#######################################################################################################################
Expand Down

0 comments on commit 46c2870

Please sign in to comment.