Skip to content

Commit

Permalink
multi-stage CI setup, build qt too
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Oct 2, 2023
1 parent bcac8a1 commit be7896d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: build
on: [push, pull_request]

env:
CACHE_VERSION: 1
CACHE_VERSION: 2
PAWPAW_SKIP_LTO: 1

jobs:
macos:
Expand All @@ -13,6 +14,7 @@ jobs:
with:
submodules: recursive
- name: Set up cache
id: cache
uses: actions/cache@v3
with:
path: |
Expand All @@ -24,10 +26,15 @@ jobs:
- name: Set up dependencies
run: |
brew install meson
- name: Build dependencies
run: |
./PawPaw/bootstrap-mod.sh macos-universal-10.15 && ./PawPaw/.cleanup.sh macos-universal-10.15
- name: Build
if: steps.cache.outputs.cache-hit == 'true'
run: |
make PAWPAW_TARGET=macos-universal-10.15
- name: Pack
if: steps.cache.outputs.cache-hit == 'true'
run: |
mv build mod-app-macOS-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
tar chzf mod-app-macOS-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}.tar.gz mod-app-macOS-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
Expand All @@ -44,6 +51,7 @@ jobs:
with:
submodules: recursive
- name: Set up cache
id: cache
uses: actions/cache@v3
with:
path: |
Expand All @@ -60,10 +68,15 @@ jobs:
- name: Set up dependencies
run: |
sudo apt-get install -yqq --allow-downgrades autopoint binutils-mingw-w64-x86-64 libc6:i386 libgcc-s1:i386 libstdc++6:i386 g++-mingw-w64-x86-64 gperf meson mingw-w64 wine-stable
- name: Build dependencies
run: |
./PawPaw/bootstrap-mod.sh win64 && ./PawPaw/.cleanup.sh win64
- name: Build
if: steps.cache.outputs.cache-hit == 'true'
run: |
make PAWPAW_TARGET=win64
- name: Pack
if: steps.cache.outputs.cache-hit == 'true'
run: |
mv build mod-app-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
zip -r -9 mod-app-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}.zip mod-app-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ run: $(TARGETS)

# ---------------------------------------------------------------------------------------------------------------------

macos:
$(MAKE) PAWPAW_TARGET=macos-universal-10.15

wasm:
$(MAKE) PAWPAW_TARGET=wasm

win64:
$(MAKE) PAWPAW_TARGET=win64

Expand Down
2 changes: 1 addition & 1 deletion PawPaw
Submodule PawPaw updated 1 files
+1 −0 bootstrap-mod.sh

0 comments on commit be7896d

Please sign in to comment.