-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (39 loc) · 1.15 KB
/
MacOsRelease.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
name: macOS Release
on:
workflow_dispatch:
branches: [ "main" ]
env:
SOURCE_DIR: ${{ github.workspace }}
QTDIR: /usr/local/opt/qt@5/bin
ARTIFACT: ${{ github.workspace }}/WaoStats.dmg
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@master
- name: Install llvm & Qt & OpenSSL
uses: ConorMacBride/[email protected]
with:
brew: llvm qt5 openssl
- name: Build DropboxQt
working-directory: ${{ env.SOURCE_DIR }}/dropboxQt/prj
run: |
${{ env.QTDIR }}/qmake -r dropboxQt.pro
make -j8
ls -al
- name: Create build directory
run: mkdir ${{ env.SOURCE_DIR }}/../build
- name: Build
working-directory: ${{ env.SOURCE_DIR }}/../build
run: |
${{ env.QTDIR }}/qmake ${{ env.SOURCE_DIR }}/WaoStats.pro
make -j8
ls -al
${{ env.QTDIR }}/macdeployqt WaoStats.app -dmg
ls -al
mv WaoStats.dmg ${{ env.SOURCE_DIR }}/
- name: Save build artifact
uses: actions/upload-artifact@master
with:
name: WaoStats
path: ${{ env.ARTIFACT }}