Skip to content

Commit

Permalink
Add macos (non-universal) target to CI
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
falkTX committed Dec 29, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e2edcad commit 315fce4
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -102,15 +102,21 @@ jobs:
matrix:
include:
- os: macos-11
target: macos
- os: macos-11
target: macos-universal-10.15
- os: macos-12
target: macos
- os: macos-12
target: macos-universal-10.15
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up dependencies
run: |
./src/PawPaw/.github/workflows/bootstrap-deps.sh macos-universal-10.15
./src/PawPaw/.github/workflows/bootstrap-deps.sh ${{ matrix.target }}
brew install p7zip wget
- name: Set up cache
id: cache
@@ -121,15 +127,15 @@ jobs:
key: macos-${{ env.PAWPAW_PACK_NAME }}-v${{ env.CACHE_VERSION_MACOS }}
- name: Build dependencies
run: |
./src/PawPaw/bootstrap-mod.sh macos-universal-10.15 && ./src/PawPaw/.cleanup.sh macos-universal-10.15
./src/PawPaw/bootstrap-mod.sh ${{ matrix.target }} && ./src/PawPaw/.cleanup.sh ${{ matrix.target }}
- name: Build
if: steps.cache.outputs.cache-hit == 'true'
run: |
make macos
- name: Validate plugins
if: steps.cache.outputs.cache-hit == 'true'
run: |
./utils/plugin-builder/validate-plugins.sh macos-universal-10.15
./utils/plugin-builder/validate-plugins.sh ${{ matrix.target }}
# FIXME dirty carla leaves temp folders around
rm -rf *.tmp
- name: Set sha8
@@ -138,7 +144,7 @@ jobs:
- name: Pack
if: steps.cache.outputs.cache-hit == 'true'
run: |
./utils/macos/macos-dmg.sh macos-universal-10.15
./utils/macos/macos-dmg.sh ${{ matrix.target }}
mv mod-app-*.dmg mod-app-${{ github.event.pull_request.number || env.SHA8 }}-macOS.dmg
- uses: actions/upload-artifact@v3
if: ${{ matrix.os == env.RELEASE_OS_MAC }}
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -112,7 +112,9 @@ TARGETS += build/mod-app.app/Contents/PlugIns/iconengines/libqsvgicon.dylib
TARGETS += build/mod-app.app/Contents/PlugIns/imageformats/libqsvg.dylib
TARGETS += build/mod-app.app/Contents/PlugIns/LV2
TARGETS += build/mod-app.app/Contents/PlugIns/platforms/libqcocoa.dylib
ifneq ($(PAWPAW_TARGET),macos)
TARGETS += build/mod-app.app/Contents/PlugIns/styles/libqmacstyle.dylib
endif
TARGETS += build/mod-app.app/Contents/Resources/default.pedalboard
TARGETS += build/mod-app.app/Contents/Resources/html
TARGETS += build/mod-app.app/Contents/Resources/mod-hardware-descriptor.json

0 comments on commit 315fce4

Please sign in to comment.