ci: use full-size data files cabinet for release builds
That's the intention, at least.
This commit is contained in:
Родитель
5d025d1f4a
Коммит
3898c26772
|
@ -1,6 +1,11 @@
|
|||
# Copyright 2020-2022 the .NET Foundation
|
||||
# Licensed under the MIT License
|
||||
|
||||
parameters:
|
||||
- name: cabinetBasename
|
||||
type: string
|
||||
default: datafiles_tiny
|
||||
|
||||
jobs:
|
||||
|
||||
- job: build
|
||||
|
@ -52,10 +57,9 @@ jobs:
|
|||
platform: '$(buildPlatform)'
|
||||
configuration: '$(buildConfiguration)'
|
||||
|
||||
# TODO: for tagged releases, download a fullsize / up-to-date package
|
||||
- powershell: |
|
||||
Invoke-WebRequest `
|
||||
"https://wwtfiles.blob.core.windows.net/devops/datafiles_tiny.cabinet" `
|
||||
"https://wwtfiles.blob.core.windows.net/devops/${{ parameters.cabinetBasename }}.cabinet" `
|
||||
-OutFile ".\Setup1\datafiles.cabinet"
|
||||
displayName: Download installer data files bundle
|
||||
|
||||
|
|
|
@ -15,6 +15,11 @@ stages:
|
|||
- stage: MainBuild
|
||||
jobs:
|
||||
- template: azure-build-and-test.yml
|
||||
parameters:
|
||||
${{ if eq(variables['Build.SourceBranchName'], 'rc') }}:
|
||||
cabinetBasename: datafiles_release
|
||||
${{ else }}:
|
||||
cabinetBasename: datafiles_tiny
|
||||
|
||||
- stage: Deploy
|
||||
condition: and(succeeded('MainBuild'), ne(variables['build.reason'], 'PullRequest'))
|
||||
|
|
Загрузка…
Ссылка в новой задаче