Added macOS build script for pipeline.

This commit is contained in:
Matthew Budd 2020-06-30 20:20:50 -04:00
parent 104f7c465e
commit e8d3b9da46
3 changed files with 37 additions and 0 deletions

View File

@ -13,6 +13,9 @@ environment:
appveyor_build_worker_image: Ubuntu2004
#appveyor_build_worker_image: Ubuntu1804
- job_name: macOS
appveyor_build_worker_image: macos
for:
-
@ -38,3 +41,12 @@ for:
build_script:
- sh: ./pipelines/linux_build.sh
-
matrix:
only:
- job_name: macOS
build_script:
- sh: ./pipelines/macOS_build.sh

View File

@ -2,6 +2,7 @@
id
pwd
uname -a
cat /etc/os-release
SCRIPT_DIR=$( cd $(dirname $BASH_SOURCE[0]); pwd );

24
pipelines/macOS_build.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/bash
echo ' MacOS Build !!! '
id
pwd
uname -a
sw_vers
SCRIPT_DIR=$( cd $(dirname $BASH_SOURCE[0]); pwd );
gcc --version
echo '****************************************'
echo "APPVEYOR_SSH_KEY=$APPVEYOR_SSH_KEY";
echo "APPVEYOR_SSH_BLOCK=$APPVEYOR_SSH_BLOCK";
echo '****************************************'
brew install sdl2
brew install qt5
# Debug via ssh if necessary
if [ ! -z $APPVEYOR_SSH_BLOCK ]; then
curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
fi