Skip to content

Commit

Permalink
Add parameter switches for individual OS build and sign jobs (#602)
Browse files Browse the repository at this point in the history
* Added parameter switches for individual OS build and sign jobs

* Disable MacOS Build by default, can be enabled with parameter
  • Loading branch information
c-ryan-k authored Jan 23, 2023
1 parent a6800c4 commit 9fa7b26
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pipelines/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ parameters:
- 'macOS-10.15'
- 'macOS-11'
- '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
displayName: 'Publish Release'
type: boolean
Expand Down Expand Up @@ -74,6 +86,7 @@ stages:
jobs:
- job: packageWindows
displayName: "Package for Windows"
condition: ${{ parameters.build_win }}
pool:
name: $[variables.${{ parameters.buildAgentPoolVar }}]
vmImage: $(winVmImage)
Expand Down Expand Up @@ -103,6 +116,7 @@ stages:

- job: packageMac
displayName: "Package for MacOS"
condition: ${{ parameters.build_mac }}

pool:
vmImage: ${{ parameters.macBuildImage }}
Expand Down Expand Up @@ -130,6 +144,7 @@ stages:

- job: packageLinux
displayName: "Package for Linux"
condition: ${{ parameters.build_linux }}
pool:
name: $[variables.${{ parameters.buildAgentPoolVar }}]
vmImage: $(linuxVmImage)
Expand Down Expand Up @@ -167,6 +182,7 @@ stages:

- job: signWindows
displayName: 'Windows'
condition: ${{ parameters.build_win }}
steps:
- download: current
artifact: Windows
Expand Down Expand Up @@ -221,6 +237,7 @@ stages:

- job: signMac
displayName: 'MacOS'
condition: ${{ parameters.build_mac }}
steps:
- download: current
artifact: Mac
Expand Down Expand Up @@ -285,6 +302,7 @@ stages:

- job: signLinux
displayName: 'Linux'
condition: ${{ parameters.build_linux }}
steps:
- download: current
artifact: Linux
Expand Down

0 comments on commit 9fa7b26

Please sign in to comment.