Simplify CI jobs, and merge DMG generation into one job

This commit merges the macOSRelease job into one unified Mac build job.

Using Azure Pipelines conditionals (AND), we check for the build type being an release, and the build agent being Big Sur.

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
This commit is contained in:
Dom Rodriguez 2021-11-05 15:36:25 +00:00
parent f1c5405873
commit 2e0f54822e
No known key found for this signature in database
GPG Key ID: 72DCF1231E54BD43
1 changed files with 2 additions and 21 deletions

View File

@ -121,28 +121,9 @@ jobs:
displayName: Install Qt5 and pkg-config prereqs displayName: Install Qt5 and pkg-config prereqs
- script: sh -x ./clean_build.sh - script: sh -x ./clean_build.sh
displayName: Clean Build displayName: Clean Build
- job: macOSRelease
displayName: macOS Universal Binary Release Builds
pool:
vmImage: "macOS-11"
variables:
VERBOSE: 1
TERM: xterm-256color
B_BUILD_TYPE: Release
BARRIER_VERSION_STAGE: Release
steps:
- script: rm -rf /usr/local/opt/openssl
displayName: Remove incompatible OpenSSL 1.0.2t from macOS-10.14 vmImage
- script: brew reinstall openssl
displayName: Installed newer OpenSSL 1.1.x
- script: brew install pkg-config qt5
displayName: Install Qt5 and pkg-config prereqs
- script: sh -x ./clean_build.sh
displayName: Clean Build
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Publish Release DMG displayName: Publish Release DMG if on Big Sur agent
condition: eq(variables['B_BUILD_TYPE'], 'Release') condition: and(eq(variables['B_BUILD_TYPE'], 'Release'), eq(variables['imageName'], 'macOS-11'))
inputs: inputs:
pathtoPublish: build/bundle pathtoPublish: build/bundle
artifactName: Universal Binary for macOS artifactName: Universal Binary for macOS