Skip to content

Commit 916cd59

Browse files
mancoastmancoast
authored andcommitted
Create config.yml
initialize circleci macOS builds
1 parent 02d4553 commit 916cd59

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.circleci/config.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# https://circleci.com/docs/2.0/
2+
version: 2
3+
jobs:
4+
build-and-pack:
5+
macos:
6+
xcode: "8.3.3"
7+
working_directory: ~/projectm/
8+
steps:
9+
- checkout
10+
- run:
11+
name: Dependencies
12+
command: |
13+
brew update
14+
brew install llvm qt5 gsl lzo jpeg libpng libtiff libsndfile tree p7zip wget
15+
- run:
16+
name: Build
17+
command: |
18+
export QTDIR="/usr/local/opt/qt5"
19+
export PATH="$QTDIR/bin:$PATH"
20+
export LDFLAGS="-L$QTDIR/lib $LDFLAGS"
21+
export CPPFLAGS="-I$QTDIR/include $CPPFLAGS"
22+
sh ~/projectm/projectm/mac/build_deploy.sh
23+
- run:
24+
name: Pack
25+
command: |
26+
mkdir -p ~/projectm/build/artifacts/
27+
cd ~/projectm/build/ && 7z a artifacts/projectm-macOS-$CIRCLE_SHA1.zip projectm.app
28+
mv ~/projectm/build/projectm.dmg ~/projectm/build/artifacts/projectm-macOS-$CIRCLE_SHA1.dmg
29+
cd ~/projectm/build/ && tree .
30+
- store_artifacts:
31+
path: ~/projectm/build/artifacts/
32+
33+
workflows:
34+
version: 2
35+
build-and-deploy:
36+
jobs:
37+
- build-and-pack
38+
39+
40+

0 commit comments

Comments
 (0)