-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.67 KB
/
ci_macos.yaml
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
57
58
59
60
61
62
63
name: CI - macOS
on: [pull_request, push]
permissions:
actions: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.head_ref != '' }}
jobs:
ci:
name: Build
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
submodules: recursive
- name: Install dependencies
run: |
brew update > /dev/null
brew install cmake ninja
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: "6.7.*"
archives: qtbase qtsvg
modules: qtmultimedia
- name: Build application
run: |
cmake \
-B build \
-G Ninja \
-D CMAKE_OSX_DEPLOYMENT_TARGET=12.0 \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_OSX_ARCHITECTURES="x86_64;arm64"
cmake --build build
- name: Prepare build artifacts
run: |
pushd build/app
rm DigitalClock5.app/Contents/PlugIns/sample.dylib
macdeployqt DigitalClock5.app
rm DigitalClock5.app/Contents/PlugIns/multimedia/libffmpegmediaplugin.dylib
rm DigitalClock5.app/Contents/Frameworks/libav*
rm DigitalClock5.app/Contents/Frameworks/libsw*
macdeployqt DigitalClock5.app -no-plugins -dmg -codesign=-
popd
mkdir upload
mv build/app/DigitalClock5.dmg upload/digital_clock_5-macos.dmg
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: DigitalClock5 macOS Nightly
path: upload