-
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (67 loc) · 2.29 KB
/
mac_release.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
# Copy: (c) 2023 blurryroots innovation qanat OÜ
# Author: sven freiberg
name: Mac Release
on:
push:
branches:
- 'release/mac'
defaults:
run:
shell: bash
env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 5.15.2
QT_ARCH: clang_64
CMAKE_VERSION: '3.16.x'
PROJECT: Eddy
BUILD_TYPE: Debug
SHARED_LIBS: OFF
MODULE_LIBS: OFF
GENERATE_DMG: TRUE
jobs:
build:
runs-on: macos-11
steps:
- name: Installing Qt (cached)
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
host: mac
target: desktop
arch: ${{ env.QT_ARCH }}
dir: ${{ runner.temp }}
modules: debug_info
setup-python: false
cache: true
cache-key-prefix: ${{ runner.os }}-qt-${{ env.QT_VERSION }}
- name: Installing cmake
uses: jwlawson/[email protected]
with:
cmake-version: ${{ env.CMAKE_VERSION }}
- name: Checking out source code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Staging project
run: |
cmake -B ${{ env.SOURCE_DIR }}/Staging \
-DQt5_DIR="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/${{ env.QT_ARCH }}/lib/cmake/Qt5" \
-DBUILD_ID="${{ env.GITHUB_SHA }}" \
-DBUILD_MODULES=${{ env.MODULE_LIBS }} \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-DBUILD_SHARED_LIBS=${{ env.SHARED_LIBS }} \
-DGENERATE_DMG=${{ env.GENERATE_DMG }} \
${{ env.SOURCE_DIR }}
- name: Building project
working-directory: ${{ env.SOURCE_DIR }}
run: |
cmake --build ${{ env.SOURCE_DIR }}/Staging
- name: Prepare release candidate
working-directory: ${{ env.SOURCE_DIR }}
run: |
cmake --build ${{ env.SOURCE_DIR }}/Staging --target ${{ env.PROJECT }}_Compile_Release_Candidate
- name: Uploading release candidate
uses: actions/upload-artifact@v1
with:
name: ${{ env.PROJECT }}_${{ env.BUILD_TYPE }}.dmg
path: ${{ env.SOURCE_DIR }}/Release/Candidate/${{ env.PROJECT }}.dmg