-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.9 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
64
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
brew install create-dmg
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: "6.7.*"
modules: qtimageformats 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 --target update_translations
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 -codesign=-
popd
mkdir upload
create-dmg --volname "Digital Clock 5" --window-size 400 300 --text-size 16 --icon-size 128 --icon "DigitalClock5.app" 30 110 --app-drop-link 200 110 --format UDBZ upload/digital_clock_5-macos.dmg build/app/DigitalClock5.app
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: DigitalClock5 macOS Nightly
path: upload