Skip to content

Commit b306d1f

Browse files
committed
fixup! macOS release: build, lay out, and codesign payload
1 parent 1efb57f commit b306d1f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
osx-build:
1313
name: Build macOS
1414
runs-on: macos-latest
15+
strategy:
16+
matrix:
17+
runtime: [ osx-x64, osx-arm64 ]
1518
steps:
1619
- uses: actions/checkout@v3
1720
with:
@@ -27,15 +30,19 @@ jobs:
2730

2831
- name: Build
2932
run: |
30-
dotnet build --configuration=MacRelease
33+
dotnet build src/osx/Installer.Mac/*.csproj \
34+
--configuration=MacRelease --no-self-contained \
35+
--runtime=${{ matrix.runtime }}
3136
3237
- name: Run macOS unit tests
3338
run: |
3439
dotnet test --configuration=MacRelease
3540
3641
- name: Lay out payload and symbols
3742
run: |
38-
src/osx/Installer.Mac/layout.sh --configuration=MacRelease --output=payload --symbol-output=symbols
43+
src/osx/Installer.Mac/layout.sh \
44+
--configuration=MacRelease --output=payload \
45+
--symbol-output=symbols --runtime=${{ matrix.runtime }}
3946
4047
- name: Create keychain
4148
env:
@@ -58,7 +65,7 @@ jobs:
5865
- name: Upload macOS artifacts
5966
uses: actions/upload-artifact@v3
6067
with:
61-
name: tmp.osx-build
68+
name: tmp.${{ matrix.runtime }}-build
6269
path: |
6370
payload
6471
symbols

0 commit comments

Comments
 (0)