-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (78 loc) · 2.4 KB
/
MacOS-Qt6.5.1.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: MacOS-Qt6.5.1
on:
push:
paths:
- '*.txt'
- '*.bat'
- '*.sh'
- '3rdparty/**'
- 'code/**'
- 'config/**'
- 'FluControls/**'
- 'FluExamples/**'
- 'FluIconTool/**'
- 'FluUtils/**'
- 'FluWinGallery/**'
- 'res/**'
- 'StyleSheet/**'
- '.github/workflows/MacOS-Qt6.5.1.yml'
pull_request:
paths:
- '*.txt'
- '*.bat'
- '*.sh'
- '3rdparty/**'
- 'code/**'
- 'config/**'
- 'FluControls/**'
- 'FluExamples/**'
- 'FluIconTool/**'
- 'FluUtils/**'
- 'FluWinGallery/**'
- 'res/**'
- 'StyleSheet/**'
- '.github/workflows/MacOS-Qt6.5.1.yml'
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
qt_ver: [6.5.1]
qt_arch: [clang_64]
env:
targetName: FluWinGallery
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_ver }}
cache: ${{steps.cache-qt.outputs.cache-hit}}
arch: ${{ matrix.qt_arch }}
modules: 'qt5compat qtmultimedia qtshadertools qtimageformats qt3d'
- name: Set up Ninja
uses: seanmiddleditch/gha-setup-ninja@v3
with:
version: 1.10.2
- name: Build & Package
run: |
cmake --version
mkdir build
cd build
cmake -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -DCMAKE_PREFIX_PATH=/Users/runner/work/CppQtFluentUi888/Qt/${{ matrix.qt_ver }}/macos -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -GNinja ..
cmake --build . --target all --config Release --parallel
cmake --build . --target package
- name: New Release
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./build/FluGalleryWin64Msvc.zip
asset_name: ${{ env.targetName }}_${{ github.ref_name }}_${{ matrix.os }}_Qt${{ matrix.qt_ver }}.zip
tag: ${{ github.ref }}
overwrite: true