CI(macOS): Split off obs-studio build task

Split off the obs-studio build task to help separate CI log sections.
This commit is contained in:
Ryan Foster 2018-04-13 15:43:01 -04:00 committed by Stéphane L
parent 08e86a1378
commit 640bcb90c6
3 changed files with 17 additions and 12 deletions

View File

@ -35,7 +35,9 @@ matrix:
- os: osx
env: _macos_build
osx_image: xcode8.3
before_install: "./CI/install-dependencies-macos.sh"
before_install:
- "./CI/install-dependencies-macos.sh"
- "./CI/install-build-obs-macos.sh"
script: "./CI/build-macos.sh"
after_success:
- ./CI/package-macos.sh

14
CI/install-build-obs-macos.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
set -ex
# Build obs-studio
cd ..
git clone https://github.com/obsproject/obs-studio
cd obs-studio
OBSLatestTag=$(git describe --tags --abbrev=0)
git checkout $OBSLatestTag
mkdir build && cd build
cmake .. \
-DDISABLE_PLUGINS=true \
-DCMAKE_PREFIX_PATH=/usr/local/opt/qt/lib/cmake \
&& make -j4

View File

@ -12,19 +12,8 @@ brew install qt5
#echo "Qt path: $(find /usr/local/Cellar/qt5 -d 1 | tail -n 1)"
# Build obs-studio
cd ..
git clone https://github.com/obsproject/obs-studio
cd obs-studio
git checkout 21.0.0
mkdir build && cd build
cmake .. \
-DDISABLE_PLUGINS=true \
-DCMAKE_PREFIX_PATH=/usr/local/opt/qt/lib/cmake \
&& make -j4
# Packages app
cd ..
curl -L -O http://s.sudre.free.fr/Software/files/Packages.dmg -f --retry 5 -C -
hdiutil attach ./Packages.dmg
sudo installer -pkg /Volumes/Packages\ 1.2.3/packages/Packages.pkg -target /