feat: use separate matrix strategies for each architecture

revert build target in package.json so we only build one architecture depending on the runner
pull/3281/head
yougotwill 3 months ago
parent b3ad0979f2
commit e0e199375a

@ -120,8 +120,8 @@ jobs:
build_macos: build_macos:
strategy: strategy:
matrix: matrix:
os: [macos-14] os: [macos-14, macos-13]
arch: ['arm64', 'x64'] arch: [arm64, x64]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -139,7 +139,7 @@ jobs:
- name: Setup & Build - name: Setup & Build
uses: ./actions/setup_and_build uses: ./actions/setup_and_build
with: with:
cache_suffix: 'macos' cache_suffix: ${{ matrix.os }}-${{ matrix.arch }}
# we want to test on all platforms since some are testing the rendered menus (and are dependent on the platform) # we want to test on all platforms since some are testing the rendered menus (and are dependent on the platform)
- name: Unit Test - name: Unit Test

@ -227,30 +227,8 @@
"category": "public.app-category.social-networking", "category": "public.app-category.social-networking",
"icon": "build/icon-mac.icns", "icon": "build/icon-mac.icns",
"target": [ "target": [
{ "dmg",
"target": "dmg", "zip"
"arch": [
"arm64"
]
},
{
"target": "zip",
"arch": [
"arm64"
]
},
{
"target": "dmg",
"arch": [
"x64"
]
},
{
"target": "zip",
"arch": [
"x64"
]
}
], ],
"bundleVersion": "1", "bundleVersion": "1",
"hardenedRuntime": true, "hardenedRuntime": true,

Loading…
Cancel
Save