forked from CDrummond/cantata
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.73 KB
/
github-actions.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
on:
workflow_dispatch:
jobs:
Mac-OS-build:
runs-on: macos-latest
steps:
- run: echo "Job was triggered by a ${{ github.event_name }} event."
- run: echo "Job now running on a ${{ runner.os }} server hosted by GitHub."
- name: Check out repository code
uses: actions/checkout@v2
with:
persist-credentials: false
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "Workflow is now ready to build."
- run: echo "Installing dependencies with homebrew."
- name: Brew-install deps
run: brew install cmake taglib ffmpeg openssl qt5
- run: echo "Generating icons."
- name: Generate icons
run: |
cd /Users/runner/work/cantata/cantata/mac
./createicon.sh
- run: echo "Starting build."
- name: Build
id: build
run: |
mkdir /Users/runner/work/cantata/build
mkdir /Users/runner/work/cantata/install
cd /Users/runner/work/cantata/build
export Qt5_DIR="/usr/local/opt/qt@5/lib/cmake"
cmake -S "/Users/runner/work/cantata/cantata" -B "/Users/runner/work/cantata/build" -DCMAKE_INSTALL_PREFIX="/Users/runner/work/cantata/install" -DENABLE_TAGLIB=ON -DCMAKE_PREFIX_PATH="/usr/local/opt/qt@5/;/usr/local/opt/qt@5/lib/cmake/Qt5Widgets/" -DCMAKE_BUILD_TYPE=Release
make
make install
cd /Users/runner/work/cantata/build/mac
./create-dmg.sh
- run: echo "Uploading dmg to release page."
- uses: AButler/[email protected]
with:
files: 'cantata/build/mac/Cantata-*.dmg'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: echo "All done!"