Skip to content

Commit

Permalink
[CI] add macOS 14 arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb authored Feb 1, 2024
1 parent 7b54e65 commit 04b428d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ on:

jobs:
build:
name: "Build: ${{ matrix.os }}"
name: "Build: ${{ matrix.os }} ${{ matrix.mactype }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest]
os: [macos-12,macos-14]
include:
- os: macos-12
mactype: "intel"
- os: macos-14
mactype: "arm"

steps:
- name: Checkout Git Repo
Expand Down Expand Up @@ -67,7 +72,7 @@ jobs:
--icon-size 64 \
--icon 'firebird-emu.app' 125 200 \
--app-drop-link 400 200 \
'firebird-emu_macOS.dmg' \
'firebird-emu_macOS_${{matrix.mactype}}.dmg' \
'/tmp/firebird-emu_macOS/'"
eval "create-dmg $createDmgArgs" || eval "create-dmg $createDmgArgs" # We also retry just in case...
Expand All @@ -80,11 +85,11 @@ jobs:
if: ${{ runner.os == 'macOS' && github.repository == 'nspire-emus/firebird' && env.HAVE_SECRETS == 'true' }}
run: |
xcrun notarytool store-credentials "notarytool-profile" --apple-id "$APPLE_NOTARIZATION_USERNAME" --team-id "$APPLE_NOTARIZATION_TEAMID" --password "$APPLE_NOTARIZATION_PASSWORD"
xcrun notarytool submit "firebird-emu_macOS.dmg" --keychain-profile "notarytool-profile" --wait
xcrun stapler staple "firebird-emu_macOS.dmg"
xcrun notarytool submit "firebird-emu_macOS_${{matrix.mactype}}.dmg" --keychain-profile "notarytool-profile" --wait
xcrun stapler staple "firebird-emu_macOS_${{matrix.mactype}}.dmg"
- name: "Upload DMG"
uses: actions/upload-artifact@v3
with:
name: firebird-emu_macOS
path: firebird-emu_macOS.dmg
name: firebird-emu_macOS_${{matrix.mactype}}
path: firebird-emu_macOS_${{matrix.mactype}}.dmg

0 comments on commit 04b428d

Please sign in to comment.