diff --git a/appveyor.yml b/appveyor.yml index 6d0f01bf..869bf0fe 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 + diff --git a/pipelines/linux_build.sh b/pipelines/linux_build.sh index f4a979ab..e5ffe5d4 100755 --- a/pipelines/linux_build.sh +++ b/pipelines/linux_build.sh @@ -2,6 +2,7 @@ id pwd +uname -a cat /etc/os-release SCRIPT_DIR=$( cd $(dirname $BASH_SOURCE[0]); pwd ); diff --git a/pipelines/macOS_build.sh b/pipelines/macOS_build.sh new file mode 100644 index 00000000..51762734 --- /dev/null +++ b/pipelines/macOS_build.sh @@ -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