Skip to content

Commit

Permalink
Perform Wix Installation
Browse files Browse the repository at this point in the history
Install the WixToolset for custom runners.

Co-authored-by: kendal <[email protected]>
  • Loading branch information
kendalharland and kendal authored Jun 28, 2024
1 parent c3463b8 commit 9b64bb5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/swift-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,15 @@ jobs:
Echo CERTIFICATE=$PFXPath | Out-File -FilePath ${env:GITHUB_ENV} -Encoding utf8 -Append
if: ${{ needs.context.outputs.signed }}
- name: Install WixToolset.Sdk
run: |
if ((Get-Package -Name WixToolset.Sdk -ErrorAction SilentlyContinue) -eq $null) {
if ([string]::IsNullOrEmpty((Get-PackageSource | %{ $_.Location } | Select-String -Pattern api.nuget.org))) {
Register-PackageSource -Name NuGet -Location https://www.nuget.org/api/v2 -ProviderName NuGet
}
Install-Package -Name WixToolset.Sdk -RequiredVersion 4.0.1 -Force
}
- name: Package Build Tools
run: |
msbuild -nologo -restore -maxCpuCount `
Expand Down Expand Up @@ -2997,6 +3006,15 @@ jobs:
Write-Output CERTIFICATE=$PFXPath | Out-File -FilePath ${env:GITHUB_ENV} -Encoding utf8 -Append
if: ${{ needs.context.outputs.signed }}
- name: Install WixToolset.Sdk
run: |
if ((Get-Package -Name WixToolset.Sdk -ErrorAction SilentlyContinue) -eq $null) {
if ([string]::IsNullOrEmpty((Get-PackageSource | %{ $_.Location } | Select-String -Pattern api.nuget.org))) {
Register-PackageSource -Name NuGet -Location https://www.nuget.org/api/v2 -ProviderName NuGet
}
Install-Package -Name WixToolset.Sdk -RequiredVersion 4.0.1 -Force
}
- name: Package SDK
run: |
msbuild -nologo -restore -maxCpuCount `
Expand Down Expand Up @@ -3090,6 +3108,15 @@ jobs:
Write-Output CERTIFICATE=$PFXPath | Out-File -FilePath ${env:GITHUB_ENV} -Encoding utf8 -Append
if: ${{ needs.context.outputs.signed }}
- name: Install WixToolset.Sdk
run: |
if ((Get-Package -Name WixToolset.Sdk -ErrorAction SilentlyContinue) -eq $null) {
if ([string]::IsNullOrEmpty((Get-PackageSource | %{ $_.Location } | Select-String -Pattern api.nuget.org))) {
Register-PackageSource -Name NuGet -Location https://www.nuget.org/api/v2 -ProviderName NuGet
}
Install-Package -Name WixToolset.Sdk -RequiredVersion 4.0.1 -Force
}
- name: Package SDK
run: |
msbuild -nologo -restore -maxCpuCount `
Expand Down

0 comments on commit 9b64bb5

Please sign in to comment.