Skip to content

Commit 5406239

Browse files
committed
ci: build macOS intel and arm bundles
1 parent ff0ea02 commit 5406239

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/macos.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ on:
1414

1515
jobs:
1616
build-macos:
17-
runs-on: macos-13
17+
strategy:
18+
matrix:
19+
include:
20+
- os: macos-13
21+
arch: mac-intel
22+
- os: macos-14
23+
arch: mac-arm64
24+
runs-on: ${{ matrix.os }}
1825
steps:
1926
- name: Check tag
2027
if: startsWith(github.ref, 'refs/tags/')
@@ -49,13 +56,13 @@ jobs:
4956
- name: Install dependencies for bundling
5057
run: brew install dylibbundler
5158
- name: Set artifact name
52-
run: echo "artifact_name=dune3d-win64-$(date +%Y-%m-%d-%H%M)-$(echo ${{ github.ref_name }} | tr / -)" >> $GITHUB_ENV
59+
run: echo "artifact_name=dune3d-${{ matrix.os }}-$(date +%Y-%m-%d-%H%M)-$(echo ${{ github.ref_name }} | tr / -)" >> $GITHUB_ENV
5360
- name: Bundle app
5461
run: |
5562
bash scripts/bundle_macos.sh
56-
ditto -c -k --keepParent dist/Dune\ 3D.app dist/Dune3D-mac.zip
63+
ditto -c -k --keepParent dist/Dune\ 3D.app dist/Dune3D-${{ matrix.os }}.zip
5764
- name: Upload bundle
5865
uses: actions/upload-artifact@v4
5966
with:
6067
name: ${{ env.artifact_name }}
61-
path: "dist/Dune3D-mac.zip"
68+
path: "dist/Dune3D-${{ matrix.os }}.zip"

0 commit comments

Comments
 (0)