Merge pull request #3441 from PatTheMav/ci-fix-azure-macos

CI: Fix Azure macOS pipeline to use new build script
master
Jim 2020-09-09 09:57:56 -07:00 committed by GitHub
commit 0494c8801e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 22 deletions

View File

@ -54,11 +54,20 @@ BUILD_DEPS=(
"sparkle ${SPARKLE_VERSION:-${CI_SPARKLE_VERSION}}" "sparkle ${SPARKLE_VERSION:-${CI_SPARKLE_VERSION}}"
) )
COLOR_RED=$(tput setaf 1) if [ -n "${TERM-}" ]; then
COLOR_GREEN=$(tput setaf 2) COLOR_RED=$(tput setaf 1)
COLOR_BLUE=$(tput setaf 4) COLOR_GREEN=$(tput setaf 2)
COLOR_ORANGE=$(tput setaf 3) COLOR_BLUE=$(tput setaf 4)
COLOR_RESET=$(tput sgr0) 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_VERSION="$(sw_vers -productVersion)"
MACOS_MAJOR="$(echo ${MACOS_VERSION} | cut -d '.' -f 1)" MACOS_MAJOR="$(echo ${MACOS_VERSION} | cut -d '.' -f 1)"

View File

@ -32,23 +32,15 @@ jobs:
steps: steps:
- script: git submodule update --init --recursive - script: git submodule update --init --recursive
displayName: 'Checkout Submodules' displayName: 'Checkout Submodules'
- script: ./CI/install-dependencies-osx.sh - script: TERM="" ./CI/full-build-macos.sh
displayName: 'Install Dependencies' displayName: 'Install dependencies and build'
- script: TERM="" ./CI/full-build-macos.sh -s -d -b -p
- script: ./CI/before-script-osx.sh
displayName: 'Cmake'
- bash: |
set -e
cd ./build
make -j4
cd -
displayName: 'Build'
- script: ./CI/before-deploy-osx.sh
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true)) condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
displayName: 'Before Deploy' displayName: 'Before Deploy'
- bash: |
mkdir -p ./nightly
find ./build -name \*.dmg -exec cp -PR \{\} ./nightly/ \;
displayName: 'Copy disk image'
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true)) condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
inputs: inputs:
@ -70,7 +62,7 @@ jobs:
displayName: 'Download / Setup Deps / Run CMake' displayName: 'Download / Setup Deps / Run CMake'
- task: MSBuild@1 - task: MSBuild@1
displayName: 'Build 32-bit' displayName: 'Build 32-bit'
inputs: inputs:
msbuildArguments: '/m /p:Configuration=RelWithDebInfo' msbuildArguments: '/m /p:Configuration=RelWithDebInfo'
solution: .\build32\obs-studio.sln solution: .\build32\obs-studio.sln
- script: ./CI/before-deploy-win.cmd - script: ./CI/before-deploy-win.cmd
@ -97,7 +89,7 @@ jobs:
displayName: 'Download / Setup Deps / Run CMake' displayName: 'Download / Setup Deps / Run CMake'
- task: MSBuild@1 - task: MSBuild@1
displayName: 'Build 64-bit' displayName: 'Build 64-bit'
inputs: inputs:
msbuildArguments: '/m /p:Configuration=RelWithDebInfo' msbuildArguments: '/m /p:Configuration=RelWithDebInfo'
solution: .\build64\obs-studio.sln solution: .\build64\obs-studio.sln
- script: ./CI/before-deploy-win.cmd - script: ./CI/before-deploy-win.cmd