vmr-build: add job that builds a Mono runtime. (#16357)
Co-authored-by: Michael Simons <msimons@microsoft.com> Co-authored-by: Marek Safar <marek.safar@gmail.com>
This commit is contained in:
parent
804050874c
commit
1b19de6ce7
2 changed files with 41 additions and 6 deletions
|
@ -58,6 +58,11 @@ parameters:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
|
- name: useMonoRuntime
|
||||||
|
displayName: True when build output uses the mono runtime
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: ${{ parameters.buildName }}_${{ parameters.architecture }}
|
- job: ${{ parameters.buildName }}_${{ parameters.architecture }}
|
||||||
timeoutInMinutes: 150
|
timeoutInMinutes: 150
|
||||||
|
@ -213,6 +218,10 @@ jobs:
|
||||||
customBuildArgs="$customBuildArgs --source-version $(git -C "${{ parameters.vmrPath }}" rev-parse HEAD)"
|
customBuildArgs="$customBuildArgs --source-version $(git -C "${{ parameters.vmrPath }}" rev-parse HEAD)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ '${{ parameters.useMonoRuntime }}' == 'True' ]]; then
|
||||||
|
customBuildArgs="--use-mono-runtime"
|
||||||
|
fi
|
||||||
|
|
||||||
docker run --rm -v "$(sourcesPath):/vmr" -w /vmr $customRunArgs ${{ parameters.container }} ./build.sh --clean-while-building $(additionalBuildArgs) $customBuildArgs
|
docker run --rm -v "$(sourcesPath):/vmr" -w /vmr $customRunArgs ${{ parameters.container }} ./build.sh --clean-while-building $(additionalBuildArgs) $customBuildArgs
|
||||||
displayName: Build
|
displayName: Build
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,7 @@ stages:
|
||||||
excludeOmniSharpTests: true # ✅
|
excludeOmniSharpTests: true # ✅
|
||||||
overrideDistroDisablingSha1: false # 🚫
|
overrideDistroDisablingSha1: false # 🚫
|
||||||
runOnline: true # ✅
|
runOnline: true # ✅
|
||||||
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
||||||
|
@ -98,6 +99,7 @@ stages:
|
||||||
excludeOmniSharpTests: true # ✅
|
excludeOmniSharpTests: true # ✅
|
||||||
overrideDistroDisablingSha1: false # 🚫
|
overrideDistroDisablingSha1: false # 🚫
|
||||||
runOnline: true # ✅
|
runOnline: true # ✅
|
||||||
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: true # ✅
|
withPreviousSDK: true # ✅
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml
|
||||||
|
@ -115,6 +117,25 @@ stages:
|
||||||
excludeOmniSharpTests: true # ✅
|
excludeOmniSharpTests: true # ✅
|
||||||
overrideDistroDisablingSha1: false # 🚫
|
overrideDistroDisablingSha1: false # 🚫
|
||||||
runOnline: false # 🚫
|
runOnline: false # 🚫
|
||||||
|
useMonoRuntime: false # 🚫
|
||||||
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
|
- template: ../jobs/vmr-build.yml
|
||||||
|
parameters:
|
||||||
|
buildName: CentOSStream8_Mono_Offline_MsftSdk
|
||||||
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
|
architecture: x64
|
||||||
|
pool:
|
||||||
|
name: ${{ variables.defaultPoolName }}
|
||||||
|
demands: ${{ variables.defaultPoolDemands }}
|
||||||
|
container: ${{ parameters.centOSStream8Container }}
|
||||||
|
buildFromArchive: true # ✅
|
||||||
|
enablePoison: false # 🚫
|
||||||
|
excludeOmniSharpTests: true # ✅
|
||||||
|
overrideDistroDisablingSha1: false # 🚫
|
||||||
|
runOnline: false # 🚫
|
||||||
|
useMonoRuntime: true # ✅
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml
|
||||||
|
@ -127,12 +148,13 @@ stages:
|
||||||
name: ${{ variables.defaultPoolName }}
|
name: ${{ variables.defaultPoolName }}
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
demands: ${{ variables.defaultPoolDemands }}
|
||||||
container: ${{ parameters.centOSStream9Container }}
|
container: ${{ parameters.centOSStream9Container }}
|
||||||
buildFromArchive: true # ✅
|
buildFromArchive: true # ✅
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
excludeOmniSharpTests: false # 🚫
|
excludeOmniSharpTests: false # 🚫
|
||||||
overrideDistroDisablingSha1: true # ✅
|
overrideDistroDisablingSha1: true # ✅
|
||||||
runOnline: false # 🚫
|
runOnline: false # 🚫
|
||||||
withPreviousSDK: false # 🚫
|
useMonoRuntime: false # 🚫
|
||||||
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -149,6 +171,7 @@ stages:
|
||||||
excludeOmniSharpTests: false # 🚫
|
excludeOmniSharpTests: false # 🚫
|
||||||
overrideDistroDisablingSha1: false # 🚫
|
overrideDistroDisablingSha1: false # 🚫
|
||||||
runOnline: false # 🚫
|
runOnline: false # 🚫
|
||||||
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml
|
||||||
|
@ -166,6 +189,7 @@ stages:
|
||||||
excludeOmniSharpTests: false # 🚫
|
excludeOmniSharpTests: false # 🚫
|
||||||
overrideDistroDisablingSha1: false # 🚫
|
overrideDistroDisablingSha1: false # 🚫
|
||||||
runOnline: false # 🚫
|
runOnline: false # 🚫
|
||||||
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml
|
||||||
|
@ -181,6 +205,7 @@ stages:
|
||||||
excludeOmniSharpTests: false # 🚫
|
excludeOmniSharpTests: false # 🚫
|
||||||
overrideDistroDisablingSha1: false # 🚫
|
overrideDistroDisablingSha1: false # 🚫
|
||||||
runOnline: false # 🚫
|
runOnline: false # 🚫
|
||||||
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml
|
||||||
|
@ -198,5 +223,6 @@ stages:
|
||||||
excludeOmniSharpTests: false # 🚫
|
excludeOmniSharpTests: false # 🚫
|
||||||
overrideDistroDisablingSha1: false # 🚫
|
overrideDistroDisablingSha1: false # 🚫
|
||||||
runOnline: false # 🚫
|
runOnline: false # 🚫
|
||||||
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
reuseBuildArtifactsFrom: Fedora36_Offline_MsftSdk
|
reuseBuildArtifactsFrom: Fedora36_Offline_MsftSdk
|
||||||
|
|
Loading…
Reference in a new issue