Merge pull request #3441 from PatTheMav/ci-fix-azure-macos
CI: Fix Azure macOS pipeline to use new build scriptmaster
commit
0494c8801e
|
@ -54,11 +54,20 @@ BUILD_DEPS=(
|
|||
"sparkle ${SPARKLE_VERSION:-${CI_SPARKLE_VERSION}}"
|
||||
)
|
||||
|
||||
if [ -n "${TERM-}" ]; then
|
||||
COLOR_RED=$(tput setaf 1)
|
||||
COLOR_GREEN=$(tput setaf 2)
|
||||
COLOR_BLUE=$(tput setaf 4)
|
||||
COLOR_ORANGE=$(tput setaf 3)
|
||||
COLOR_RESET=$(tput sgr0)
|
||||
else
|
||||
COLOR_RED=""
|
||||
COLOR_GREEN=""
|
||||
COLOR_BLUE=""
|
||||
COLOR_ORANGE=""
|
||||
COLOR_RESET=""
|
||||
fi
|
||||
|
||||
|
||||
MACOS_VERSION="$(sw_vers -productVersion)"
|
||||
MACOS_MAJOR="$(echo ${MACOS_VERSION} | cut -d '.' -f 1)"
|
||||
|
|
|
@ -32,23 +32,15 @@ jobs:
|
|||
steps:
|
||||
- script: git submodule update --init --recursive
|
||||
displayName: 'Checkout Submodules'
|
||||
- script: ./CI/install-dependencies-osx.sh
|
||||
displayName: 'Install Dependencies'
|
||||
|
||||
- script: ./CI/before-script-osx.sh
|
||||
displayName: 'Cmake'
|
||||
|
||||
- bash: |
|
||||
set -e
|
||||
cd ./build
|
||||
make -j4
|
||||
cd -
|
||||
displayName: 'Build'
|
||||
|
||||
- script: ./CI/before-deploy-osx.sh
|
||||
- script: TERM="" ./CI/full-build-macos.sh
|
||||
displayName: 'Install dependencies and build'
|
||||
- script: TERM="" ./CI/full-build-macos.sh -s -d -b -p
|
||||
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
|
||||
displayName: 'Before Deploy'
|
||||
|
||||
- bash: |
|
||||
mkdir -p ./nightly
|
||||
find ./build -name \*.dmg -exec cp -PR \{\} ./nightly/ \;
|
||||
displayName: 'Copy disk image'
|
||||
- task: PublishBuildArtifacts@1
|
||||
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
|
||||
inputs:
|
||||
|
|
Loading…
Reference in New Issue