-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (53 loc) · 1.54 KB
/
macos_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
name: Macos Release
on:
push:
branches:
- 'main'
- 'continuous-integration'
- 'cross-platform'
tags:
- 'v*'
pull_request:
branches:
- 'main'
- 'continuous-integration'
defaults:
run:
shell: bash
env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 5.15.2
ARTIFACT: smpt_macos.zip
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
dir: ${{ runner.temp }}
tools: 'tools_qtcreator,qt.tools.qtcreator'
- name: Create build directory
run: mkdir ${{ env.SOURCE_DIR }}/build
- name: Build
working-directory: ${{ env.SOURCE_DIR }}/build
run: |
qmake -r "CONFIG+=myRelease smpt_all macos" ${{ env.SOURCE_DIR }}/ScienceMode.pro
make
- name: Test
working-directory: ${{ env.SOURCE_DIR }}/build
run: ${{ env.SOURCE_DIR }}/build/ScienceMode_Library_Test/smptlus_test
- name: Zip build
working-directory: ${{ runner.temp }}
run: |
7z a smpt_macos.zip ${{ env.SOURCE_DIR }}/build/ScienceMode_Library/release/* -r
- name: Save build artifact
uses: actions/upload-artifact@master
with:
name: ${{ env.ARTIFACT }}
path: ${{ runner.temp }}/${{ env.ARTIFACT }}