-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (44 loc) · 1.32 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
# This is a basic workflow to help you get started with Actions
name: macOS Package
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.7.0'
modules: 'qtmultimedia'
- name: Install Conan
id: conan
working-directory: ./
shell: bash
run: |
pip3 install wheel setuptools
pip3 install conan --upgrade
conan --version
conan profile detect
- name: Build
working-directory: ./
run: |
conan install --requires=icu/74.2 --generator CMakeDeps --generator CMakeToolchain --build=missing
cmake . --preset conan-release
cmake --build --preset conan-release
- name: Package
id: package
working-directory: ./
continue-on-error: true
run: |
macdeployqt build/thplayer.app
zip -r9 --symlinks thplayer-macos.zip thplayer.app
- name: Upload
if: steps.package.conclusion == 'success'
uses: actions/upload-artifact@v4
with:
name: macOS-Build
path: thplayer-macos.zip