-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (46 loc) · 1.24 KB
/
macos.yml
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
53
54
55
56
name: macOS Build
on:
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: false
name: 🚧 macOS
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Install Ninja'
run: brew install ninja
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.7.1'
host: 'mac'
target: 'desktop'
arch: 'clang_64'
modules: 'qtconnectivity qthttpserver qtimageformats qtmultimedia'
archives: 'qttranslations qttools qtsvg qtbase'
# TODO: Can we build TagLib and use it here?
- name: '🚧 Build Cantata'
run: |
cmake -S. -G Ninja -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
cmake --build build
- name: '📦 Package Cantata'
run: cpack -G DragNDrop -B package --config build/CPackConfig.cmake
- name: '⏫ Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: macos-dmg
path: package/*.dmg
if-no-files-found: error