2019-05-07 07:18:04 +00:00
|
|
|
trigger:
|
|
|
|
tags:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: WinBuild
|
|
|
|
displayName: Windows Build
|
|
|
|
pool:
|
|
|
|
vmImage: 'vs2017-win2016'
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Debug:
|
|
|
|
CI_ENV_BUILD_TYPE: Debug
|
|
|
|
Release with Release Installer:
|
|
|
|
CI_ENV_BUILD_TYPE: Release
|
|
|
|
steps:
|
|
|
|
# Gather Dependencies
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Download Bonjour SDK-like
|
|
|
|
inputs:
|
|
|
|
filePath: azure-pipelines/download_install_bonjour_sdk_like.ps1
|
|
|
|
- task: UsePythonVersion@0
|
|
|
|
displayName: Selecting Python Installer for QLI Installer
|
|
|
|
inputs:
|
|
|
|
versionSpec: '3.7'
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Installing QT
|
|
|
|
condition: ne(variables['CacheRestored'], 'true')
|
|
|
|
inputs:
|
|
|
|
filePath: azure-pipelines/download_install_qt.ps1
|
|
|
|
# Build time!
|
|
|
|
- powershell: Copy-Item azure-pipelines\build_env_tmpl.bat build_env.bat
|
|
|
|
displayName: Layering Azure Pipeline's build_env.bat
|
|
|
|
- script: |
|
|
|
|
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 && clean_build.bat
|
|
|
|
displayName: Clean Build
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Archive Completed Build Directory
|
|
|
|
inputs:
|
|
|
|
rootFolderOrFile: build\bin\$(CI_ENV_BUILD_TYPE)\
|
|
|
|
includeRootFolder: true
|
|
|
|
archiveFile: $(Build.ArtifactStagingDirectory)\$(CI_ENV_BUILD_TYPE).zip
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish Completed Build Directory Archive Build Artifact
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: $(Build.ArtifactStagingDirectory)\$(CI_ENV_BUILD_TYPE).zip
|
2019-05-26 17:18:55 +00:00
|
|
|
artifactName: Windows $(CI_ENV_BUILD_TYPE)
|
2019-07-09 03:25:49 +00:00
|
|
|
- script: choco install innosetup --version 5.6.1.20190126 --allow-downgrade
|
|
|
|
displayName: Ensure desired version of Inno Setup is installed.
|
|
|
|
condition: eq(variables['CI_ENV_BUILD_TYPE'], 'Release')
|
2019-05-07 07:18:04 +00:00
|
|
|
- script: build_installer.bat
|
|
|
|
displayName: Build Installer
|
|
|
|
condition: eq(variables['CI_ENV_BUILD_TYPE'], 'Release')
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish Release Installer
|
|
|
|
condition: eq(variables['CI_ENV_BUILD_TYPE'], 'Release')
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: build\installer-inno\bin
|
2019-05-26 17:18:55 +00:00
|
|
|
artifactName: Windows Release Installer
|
2019-05-07 07:18:04 +00:00
|
|
|
|
|
|
|
- job: LinuxBuild
|
2021-06-28 15:00:04 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
ubuntu-18.04:
|
|
|
|
imageName: 'ubuntu-18.04'
|
|
|
|
ubuntu-20.04:
|
|
|
|
imageName: 'ubuntu-20.04'
|
2019-05-07 07:18:04 +00:00
|
|
|
displayName: Linux Build
|
|
|
|
pool:
|
2021-06-28 15:00:04 +00:00
|
|
|
vmImage: $(imageName)
|
2019-05-07 07:18:04 +00:00
|
|
|
steps:
|
2019-05-26 17:16:41 +00:00
|
|
|
- script: sudo apt-get update -y
|
2019-05-07 07:18:04 +00:00
|
|
|
- script: sudo apt-get install -y libxtst-dev qtdeclarative5-dev libavahi-compat-libdnssd-dev libcurl4-openssl-dev
|
|
|
|
displayName: Install Dependencies
|
|
|
|
- script: sh -x ./clean_build.sh
|
|
|
|
displayName: Clean Build
|
|
|
|
|
2021-11-06 17:07:28 +00:00
|
|
|
- job: MacBuild
|
|
|
|
displayName: macOS builds
|
2019-05-26 03:43:40 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-11-05 15:34:35 +00:00
|
|
|
big-sur-Debug:
|
2021-10-23 17:50:18 +00:00
|
|
|
imageName: "macOS-11"
|
2021-11-04 21:48:48 +00:00
|
|
|
B_BUILD_TYPE: Debug
|
|
|
|
BARRIER_VERSION_STAGE: Debug
|
2021-11-05 15:34:35 +00:00
|
|
|
catalina-Debug:
|
2021-10-23 17:50:18 +00:00
|
|
|
imageName: "macOS-10.15"
|
2021-11-04 21:48:48 +00:00
|
|
|
B_BUILD_TYPE: Debug
|
|
|
|
BARRIER_VERSION_STAGE: Debug
|
2021-11-05 15:34:35 +00:00
|
|
|
mojave-Debug:
|
2021-10-23 17:50:18 +00:00
|
|
|
imageName: "macOS-10.14"
|
2021-11-04 21:48:48 +00:00
|
|
|
B_BUILD_TYPE: Debug
|
|
|
|
BARRIER_VERSION_STAGE: Debug
|
2021-11-05 15:34:35 +00:00
|
|
|
big-sur-Release:
|
|
|
|
imageName: "macOS-11"
|
|
|
|
B_BUILD_TYPE: Release
|
|
|
|
BARRIER_VERSION_STAGE: Release
|
|
|
|
catalina-Release:
|
|
|
|
imageName: "macOS-10.15"
|
|
|
|
B_BUILD_TYPE: Release
|
|
|
|
BARRIER_VERSION_STAGE: Release
|
|
|
|
mojave-Release:
|
|
|
|
imageName: "macOS-10.14"
|
|
|
|
B_BUILD_TYPE: Release
|
|
|
|
BARRIER_VERSION_STAGE: Release
|
2021-10-23 18:04:10 +00:00
|
|
|
pool:
|
|
|
|
vmImage: $(imageName)
|
2020-05-06 02:57:05 +00:00
|
|
|
variables:
|
|
|
|
VERBOSE: 1
|
|
|
|
TERM: xterm-256color
|
2019-05-07 07:18:04 +00:00
|
|
|
steps:
|
2020-05-06 02:57:05 +00:00
|
|
|
- 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
|
2019-05-07 07:18:04 +00:00
|
|
|
- script: sh -x ./clean_build.sh
|
|
|
|
displayName: Clean Build
|
2019-05-26 03:52:32 +00:00
|
|
|
- task: PublishBuildArtifacts@1
|
2021-11-05 15:36:25 +00:00
|
|
|
displayName: Publish Release DMG if on Big Sur agent
|
2021-11-06 17:13:17 +00:00
|
|
|
condition: eq(variables['imageName'], 'macOS-11')
|
2019-05-26 03:52:32 +00:00
|
|
|
inputs:
|
|
|
|
pathtoPublish: build/bundle
|
2021-11-06 17:12:30 +00:00
|
|
|
artifactName: Mac Release DMG and App $(imageName)
|