Skip to content

Commit b9a8cee

Browse files
committed
update publish workflow for macos
1 parent 8b024e0 commit b9a8cee

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
- platform: "macos-latest" # for Arm based macs (M1 and above).
17+
- platform: "macos-15" # for Arm based macs (M1 and above).
1818
args: "--target aarch64-apple-darwin"
19-
- platform: "macos-latest" # for Intel based macs.
19+
- platform: "macos-15-intel" # for Intel based macs.
2020
args: "--target x86_64-apple-darwin"
2121
- platform: "ubuntu-24.04"
2222
args: ""
@@ -36,7 +36,11 @@ jobs:
3636
uses: dtolnay/rust-toolchain@stable
3737
with:
3838
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
39-
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
39+
targets: ${{ startsWith(matrix.platform, 'macos') && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
40+
41+
- name: Install create-dmg (macOS only)
42+
if: startsWith(matrix.platform, 'macos')
43+
run: brew install create-dmg
4044

4145
- name: Install OS dependencies (ubuntu only)
4246
if: matrix.platform == 'ubuntu-24.04' # This must match the platform value defined above.

0 commit comments

Comments
 (0)