-
Notifications
You must be signed in to change notification settings - Fork 78
56 lines (46 loc) · 1.38 KB
/
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
name: CI - macOS
on:
push:
branches:
- 'master'
tags:
- '*'
pull_request:
jobs:
ci:
name: Build
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: "6.7.1"
archives: qtbase qtsvg qttools
cache: true
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_OSX_DEPLOYMENT_TARGET=12.7 -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DTEST=ON
- name: Build PokeFinder
run: cmake --build ${{github.workspace}}/build --config RELEASE
- name: Test PokeFinder
run: ctest --test-dir ${{github.workspace}}/build -V
- name: Package PokeFinder
run: |
mkdir upload
mv build/Source/PokeFinder.app .
macdeployqt PokeFinder.app -verbose=3
tar czf PokeFinder-macOS.tar.gz PokeFinder.app
mv PokeFinder.app upload
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: PokeFinder-macOS
path: upload
- name: Publish Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: PokeFinder-macOS.tar.gz