-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.62 KB
/
Copy pathmacos.yml
File metadata and controls
52 lines (46 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: macos
# As in debian.yml: tags are release.yml's, which calls this workflow, so a tag
# does not also build here on its own, and there is no push trigger -- a PR or
# a manual dispatch is what exercises the packaging ahead of a tag.
on:
pull_request:
workflow_dispatch:
workflow_call:
permissions:
contents: read
jobs:
# Same shape as debian.yml and for the same reason: each architecture builds on
# a runner of its own architecture. A Homebrew Qt is thin, so there is no
# universal bundle to produce from one job, and lipo-ing a tree of frameworks
# by hand to fake one is not worth two DMGs.
#
# Both images are macOS 15 so the two builds share a deployment target.
# macos-15-intel is the last x86-64 image GitHub will offer -- it goes away
# in August 2027, and with it the Intel DMG.
package:
strategy:
fail-fast: false
matrix:
include:
- arch: arm64
runner: macos-15
- arch: x86_64
runner: macos-15-intel
name: ${{ matrix.arch }}
runs-on: ${{ matrix.runner }}
steps:
# As in debian.yml: git describe is where the built binary's version
# comes from, and post-release builds need the history and tags omitted
# by a shallow clone.
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install build dependencies
run: ./scripts/build-dmg.sh deps
- name: Build disk image
run: ./scripts/build-dmg.sh
- uses: actions/upload-artifact@v4
with:
name: corelet-macos-${{ matrix.arch }}
path: dist/*.dmg
if-no-files-found: error