зеркало из
1
0
Форкнуть 0

Add parameter switches for individual OS build and sign jobs (#602)

* Added parameter switches for individual OS build and sign jobs

* Disable MacOS Build by default, can be enabled with parameter
This commit is contained in:
Ryan K 2023-01-23 11:14:53 -08:00 коммит произвёл GitHub
Родитель a6800c4974
Коммит 9fa7b2629a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -37,6 +37,18 @@ parameters:
- 'macOS-10.15' - 'macOS-10.15'
- 'macOS-11' - 'macOS-11'
- 'macOS-latest' - 'macOS-latest'
- name: build_win
displayName: 'Build a Windows release'
type: boolean
default: true
- name: build_mac
displayName: 'Build a MacOS Release'
type: boolean
default: false # Currently not building for Mac, so default is false
- name: build_linux
displayName: 'Build a Linux Release'
type: boolean
default: true
- name: release - name: release
displayName: 'Publish Release' displayName: 'Publish Release'
type: boolean type: boolean
@ -74,6 +86,7 @@ stages:
jobs: jobs:
- job: packageWindows - job: packageWindows
displayName: "Package for Windows" displayName: "Package for Windows"
condition: ${{ parameters.build_win }}
pool: pool:
name: $[variables.${{ parameters.buildAgentPoolVar }}] name: $[variables.${{ parameters.buildAgentPoolVar }}]
vmImage: $(winVmImage) vmImage: $(winVmImage)
@ -103,6 +116,7 @@ stages:
- job: packageMac - job: packageMac
displayName: "Package for MacOS" displayName: "Package for MacOS"
condition: ${{ parameters.build_mac }}
pool: pool:
vmImage: ${{ parameters.macBuildImage }} vmImage: ${{ parameters.macBuildImage }}
@ -130,6 +144,7 @@ stages:
- job: packageLinux - job: packageLinux
displayName: "Package for Linux" displayName: "Package for Linux"
condition: ${{ parameters.build_linux }}
pool: pool:
name: $[variables.${{ parameters.buildAgentPoolVar }}] name: $[variables.${{ parameters.buildAgentPoolVar }}]
vmImage: $(linuxVmImage) vmImage: $(linuxVmImage)
@ -167,6 +182,7 @@ stages:
- job: signWindows - job: signWindows
displayName: 'Windows' displayName: 'Windows'
condition: ${{ parameters.build_win }}
steps: steps:
- download: current - download: current
artifact: Windows artifact: Windows
@ -221,6 +237,7 @@ stages:
- job: signMac - job: signMac
displayName: 'MacOS' displayName: 'MacOS'
condition: ${{ parameters.build_mac }}
steps: steps:
- download: current - download: current
artifact: Mac artifact: Mac
@ -285,6 +302,7 @@ stages:
- job: signLinux - job: signLinux
displayName: 'Linux' displayName: 'Linux'
condition: ${{ parameters.build_linux }}
steps: steps:
- download: current - download: current
artifact: Linux artifact: Linux