Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Mono build in CI #1934

Merged
merged 56 commits into from
Jan 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
dda0e24
Enable Mono in default build
akoeplinger Jan 20, 2020
9dd624a
Install Mono build dependencies
akoeplinger Jan 20, 2020
b38c606
Integrate Mono into the build system
ViktorHofer Jan 20, 2020
b71b56d
Fix yml syntax
ViktorHofer Jan 20, 2020
3fc55c6
Fix yml #2
ViktorHofer Jan 20, 2020
8c1e766
Try another syntax
ViktorHofer Jan 20, 2020
fc15f62
Revert "Try another syntax"
ViktorHofer Jan 20, 2020
516c74e
RuntimeFlavor and yml
ViktorHofer Jan 21, 2020
b299e14
Merge branch 'master' into enable-mono-ci
akoeplinger Jan 21, 2020
20eca7c
Update build container images
ViktorHofer Jan 21, 2020
1cda2e3
Merge branch 'enable-mono-ci' of https://github.com/dotnet/runtime in…
ViktorHofer Jan 21, 2020
4e7474e
Fix yml
ViktorHofer Jan 21, 2020
d3622c4
Add libraries release test run on mono
ViktorHofer Jan 21, 2020
876a802
Installer yml fixes
ViktorHofer Jan 21, 2020
579cac8
Fix yml
ViktorHofer Jan 21, 2020
d38acee
Move yml block
ViktorHofer Jan 21, 2020
87dc59e
Yml fixes
ViktorHofer Jan 21, 2020
7c49749
Yml fix
ViktorHofer Jan 21, 2020
3e02bac
yml fix juhu
ViktorHofer Jan 21, 2020
00d3770
Yml fixes
ViktorHofer Jan 21, 2020
d05dd74
yml fixes
ViktorHofer Jan 21, 2020
015f2dc
yml again
ViktorHofer Jan 21, 2020
6b83c47
Build release only
ViktorHofer Jan 21, 2020
df16fe3
Fix yml
akoeplinger Jan 21, 2020
ec4268e
Revert "Build release only"
akoeplinger Jan 21, 2020
79a41ad
Merge remote-tracking branch 'upstream/master' into enable-mono-ci
akoeplinger Jan 22, 2020
4451143
Fix script args
akoeplinger Jan 22, 2020
23437a8
Remove corecrl specific args
akoeplinger Jan 22, 2020
d362d64
configure.ac fix
akoeplinger Jan 22, 2020
f5ad7f5
Disable not needed Windows builds
akoeplinger Jan 22, 2020
f2efbac
Update linux musl x64 container
ViktorHofer Jan 22, 2020
380795e
Change container back
ViktorHofer Jan 22, 2020
bc95ce3
Merge remote-tracking branch 'upstream/master' into enable-mono-ci
akoeplinger Jan 22, 2020
86419c6
Fix System.Private.CoreLib build in Mono
akoeplinger Jan 22, 2020
a70cb85
Fix mono configuration properties
ViktorHofer Jan 22, 2020
9fe3655
Merge branch 'enable-mono-ci' of https://github.com/dotnet/runtime in…
ViktorHofer Jan 22, 2020
ebb5853
Update container for linux arm64
ViktorHofer Jan 22, 2020
695feb4
Disable failing mono configurations in yml
ViktorHofer Jan 22, 2020
be29630
Revert alpine image update
ViktorHofer Jan 22, 2020
77207be
Foce clang for mono unix build
akoeplinger Jan 22, 2020
fd6d599
Use alpine image based on runtime flavor
ViktorHofer Jan 22, 2020
691837d
Merge branch 'enable-mono-ci' of https://github.com/dotnet/runtime in…
ViktorHofer Jan 22, 2020
b453b07
Fix yml
ViktorHofer Jan 22, 2020
e46af53
Yml updates
ViktorHofer Jan 22, 2020
614de00
Another yml display name approach
ViktorHofer Jan 22, 2020
1e97f40
Honor RuntimeArtifactsPath
ViktorHofer Jan 22, 2020
8374713
Update MonoConfiguration in Subsets
ViktorHofer Jan 22, 2020
7beff64
Fix installer build
ViktorHofer Jan 22, 2020
5d0de8d
Fix installer RuntimeArtifactsPath
ViktorHofer Jan 22, 2020
58fe4e7
Use clang differently
akoeplinger Jan 22, 2020
90788fc
Disable Windows runs
akoeplinger Jan 22, 2020
cfd3e79
Disable more tests
akoeplinger Jan 22, 2020
73bae92
Disable mono windows test runs
ViktorHofer Jan 22, 2020
b6df298
Fix doc about RuntimeFlavor
akoeplinger Jan 22, 2020
480e7cb
Disable more tests
akoeplinger Jan 22, 2020
060c3d8
Fix Windows build
akoeplinger Jan 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
<CoreLibSharedDir>$([MSBuild]::NormalizeDirectory('$(LibrariesProjectRoot)', 'System.Private.CoreLib', 'src'))</CoreLibSharedDir>
</PropertyGroup>

<!-- Honor the generic RuntimeConfiguration property. -->
<PropertyGroup>
<CoreCLRConfiguration Condition="'$(CoreCLRConfiguration)' == ''">$(RuntimeConfiguration)</CoreCLRConfiguration>
<MonoConfiguration Condition="'$(MonoConfiguration)' == '' and '$(RuntimeConfiguration.ToLower())' != 'checked'">$(RuntimeConfiguration)</MonoConfiguration>
<!-- There's no checked configuration on Mono. -->
<MonoConfiguration Condition="'$(MonoConfiguration)' == '' and '$(RuntimeConfiguration.ToLower())' == 'checked'">Debug</MonoConfiguration>
</PropertyGroup>

<!-- Packaging properties -->
<PropertyGroup>
<!--
Expand Down
8 changes: 4 additions & 4 deletions docs/workflow/building/libraries/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Here is one example of a daily workflow for a developer working mainly on the li
git clean -xdf
git pull upstream master & git push origin master
build -subsetCategory coreclr -c Release
build -subsetCategory libraries -coreclrConfiguration Release
build -subsetCategory libraries -runtimeConfiguration release

:: The above you may only perform once in a day, or when
:: you pull down significant new changes.
Expand All @@ -34,7 +34,7 @@ The instructions for Linux and macOS are essentially the same:
git clean -xdf
git pull upstream master & git push origin master
./build.sh -subsetcategory coreclr -c Release
./build.sh -subsetcategory libraries -coreclrconfiguration Release
./build.sh -subsetcategory libraries -runtimeconfiguration Release

# The above you may only perform once in a day, or when
# you pull down significant new changes.
Expand All @@ -59,12 +59,12 @@ These example commands will build a release CoreCLR (and CoreLib), debug librari

For Linux:
```bash
./build.sh -coreclrconfiguration Release
./build.sh -runtimeconfiguration Release
```

For Windows:
```bat
./build.cmd -coreclrConfiguration Release
./build.cmd -runtimeconfiguration Release
```

Detailed information about building and testing runtimes and the libraries is in the documents linked below.
Expand Down
2 changes: 1 addition & 1 deletion docs/workflow/testing/coreclr/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Details on test metadata can be found in [test-configuration.md](test-configurat
* [Unix](../../building/coreclr/linux-instructions.md)
* [macOS](../../building/coreclr/osx-instructions.md)
* [Windows](../../building/coreclr/README.md)
2) [Build the libraries](../../building/libraries/README.md) in Release configuration. Pass the configuration of CoreCLR you just built to the build script (e.g. `-coreclrConfiguration Debug`).
2) [Build the libraries](../../building/libraries/README.md) in Release configuration. Pass the configuration of CoreCLR you just built to the build script (e.g. `-runtimeconfiguration debug`).
3) From the src/coreclr directory run the following command:
* Non-Windows - `./build-test.sh`
* Windows - `build-test.cmd`
Expand Down
8 changes: 4 additions & 4 deletions docs/workflow/testing/mono/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ The runtime tests will be available at a later date.
## Running Library Tests
Running library tests against Mono is straightforward regardless of configuration. Simply run the following commands:

1. Build and set the TestRuntimeFlavor
1. Build and set the RuntimeFlavor

```bash
./build.sh /p:TestRuntimeFlavor=mono
./build.sh /p:RuntimeFlavor=mono
```
or on Windows
```bat
build.cmd /p:TestRuntimeFlavor=mono
build.cmd /p:RuntimeFlavor=mono
```

2. cd into the test library of your choice (`cd src/libraries/<library>/tests`)

3. Run the tests

```
dotnet msbuild /t:BuildAndTest /p:TestRuntimeFlavor=mono
dotnet msbuild /t:BuildAndTest /p:RuntimeFlavor=mono
```
16 changes: 15 additions & 1 deletion eng/Subsets.props
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</PropertyGroup>

<PropertyGroup>
<DefaultSubsetCategories>libraries-installer-coreclr</DefaultSubsetCategories>
<DefaultSubsetCategories>libraries-installer-coreclr-mono</DefaultSubsetCategories>
<DefaultInstallerSubsets>corehost-managed-depproj-pkgproj-bundle-installers-test</DefaultInstallerSubsets>
<!-- TODO: Split into multiple sets. -->
<DefaultLibrariesSubsets>all</DefaultLibrariesSubsets>
Expand Down Expand Up @@ -102,12 +102,26 @@
<ProjectToBuild Include="$(RepoToolsLocalDir)regenerate-readme-table.proj" />
</ItemGroup>

<!-- Honor the generic RuntimeConfiguration property. -->
<PropertyGroup>
<CoreCLRConfiguration Condition="'$(CoreCLRConfiguration)' == ''">$(RuntimeConfiguration)</CoreCLRConfiguration>
<MonoConfiguration Condition="'$(MonoConfiguration)' == '' and '$(RuntimeConfiguration.ToLower())' != 'checked'">$(RuntimeConfiguration)</MonoConfiguration>
<!-- There's no checked configuration on Mono. -->
<MonoConfiguration Condition="'$(MonoConfiguration)' == '' and '$(RuntimeConfiguration.ToLower())' == 'checked'">Debug</MonoConfiguration>
</PropertyGroup>

<ItemDefinitionGroup Condition="'$(CoreCLRConfiguration)' != ''">
<CoreClrProjectToBuild>
<Properties>Configuration=$(CoreCLRConfiguration)</Properties>
</CoreClrProjectToBuild>
</ItemDefinitionGroup>

<ItemDefinitionGroup Condition="'$(MonoConfiguration)' != ''">
<MonoProjectToBuild>
<Properties>Configuration=$(MonoConfiguration)</Properties>
</MonoProjectToBuild>
</ItemDefinitionGroup>

<ItemDefinitionGroup Condition="'$(LibrariesConfiguration)' != ''">
<LibrariesProjectToBuild>
<Properties>Configuration=$(LibrariesConfiguration)</Properties>
Expand Down
23 changes: 12 additions & 11 deletions eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Param(
[string]$arch,
[string]$subsetCategory,
[string]$subset,
[string]$coreClrConfiguration,
[string]$runtimeConfiguration,
[string]$librariesConfiguration,
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
)
Expand Down Expand Up @@ -132,17 +132,18 @@ foreach ($argument in $PSBoundParameters.Keys)
{
switch($argument)
{
"build" { $arguments += " -build" }
"buildtests" { if ($build -eq $true) { $arguments += " /p:BuildTests=true" } else { $arguments += " -build /p:BuildTests=only" } }
"test" { $arguments += " -test" }
"configuration" { $configuration = (Get-Culture).TextInfo.ToTitleCase($($PSBoundParameters[$argument])); $arguments += " /p:ConfigurationGroup=$configuration -configuration $configuration" }
"build" { $arguments += " -build" }
"buildtests" { if ($build -eq $true) { $arguments += " /p:BuildTests=true" } else { $arguments += " -build /p:BuildTests=only" } }
"test" { $arguments += " -test" }
"configuration" { $configuration = (Get-Culture).TextInfo.ToTitleCase($($PSBoundParameters[$argument])); $arguments += " /p:ConfigurationGroup=$configuration -configuration $configuration" }
"runtimeConfiguration" { $arguments += " /p:RuntimeConfiguration=$((Get-Culture).TextInfo.ToTitleCase($($PSBoundParameters[$argument])))" }
# This should be removed after we have finalized our ci build pipeline.
"framework" { if ($PSBoundParameters[$argument].ToLowerInvariant() -eq 'netcoreapp') { $arguments += " /p:TargetGroup=netcoreapp5.0" } else { if ($PSBoundParameters[$argument].ToLowerInvariant() -eq 'netfx') { $arguments += " /p:TargetGroup=net472" } else { $arguments += " /p:TargetGroup=$($PSBoundParameters[$argument].ToLowerInvariant())"}}}
"os" { $arguments += " /p:OSGroup=$($PSBoundParameters[$argument])" }
"allconfigurations" { $arguments += " /p:BuildAllConfigurations=true" }
"arch" { $arguments += " /p:ArchGroup=$($PSBoundParameters[$argument]) /p:TargetArchitecture=$($PSBoundParameters[$argument])" }
"properties" { $arguments += " " + $properties }
default { $arguments += " /p:$argument=$($PSBoundParameters[$argument])" }
"framework" { if ($PSBoundParameters[$argument].ToLowerInvariant() -eq 'netcoreapp') { $arguments += " /p:TargetGroup=netcoreapp5.0" } else { if ($PSBoundParameters[$argument].ToLowerInvariant() -eq 'netfx') { $arguments += " /p:TargetGroup=net472" } else { $arguments += " /p:TargetGroup=$($PSBoundParameters[$argument].ToLowerInvariant())"}}}
"os" { $arguments += " /p:OSGroup=$($PSBoundParameters[$argument])" }
"allconfigurations" { $arguments += " /p:BuildAllConfigurations=true" }
"arch" { $arguments += " /p:ArchGroup=$($PSBoundParameters[$argument]) /p:TargetArchitecture=$($PSBoundParameters[$argument])" }
"properties" { $arguments += " " + $properties }
default { $arguments += " /p:$argument=$($PSBoundParameters[$argument])" }
}
}

Expand Down
5 changes: 3 additions & 2 deletions eng/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ while [[ $# > 0 ]]; do
arguments="$arguments /p:BuildNativeStripSymbols=true"
shift 1
;;
-coreclrconfiguration)
arguments="$arguments /p:CoreCLRConfiguration=$2"
-runtimeconfiguration)
val="$(tr '[:lower:]' '[:upper:]' <<< ${2:0:1})${2:1}"
arguments="$arguments /p:RuntimeConfiguration=$val"
shift 2
;;
-librariesconfiguration)
Expand Down
2 changes: 1 addition & 1 deletion eng/docker/build-docker-sdk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if ($buildWindowsContainers)
# Build on the host machine, then simply copy artifacts to the target docker image.
# This should result in significantly lower build times, for now.
& "$REPO_ROOT_DIR/coreclr.cmd" -c Release
& "$REPO_ROOT_DIR/libraries.cmd" -ci -c $configuration /p:CoreCLRConfiguration=Release
& "$REPO_ROOT_DIR/libraries.cmd" -ci -c $configuration -runtimeConfiguration release

# Dockerize the build artifacts
docker build --tag $imageName `
Expand Down
2 changes: 1 addition & 1 deletion eng/docker/libraries-sdk.linux.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY . .

ARG CONFIGURATION=Release
RUN ./src/coreclr/build.sh -release -skiptests -clang9 && \
./libraries.sh -c $CONFIGURATION /p:CoreCLRConfiguration=Release
./libraries.sh -c $CONFIGURATION -runtimeconfiguration release

FROM $SDK_BASE_IMAGE as target

Expand Down
4 changes: 2 additions & 2 deletions eng/install-native-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ "$1" = "Linux" ]; then
if [ "$?" != "0" ]; then
exit 1;
fi
sudo apt install cmake llvm-3.9 clang-3.9 lldb-3.9 liblldb-3.9-dev libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev libcurl4-openssl-dev libssl-dev libkrb5-dev libnuma-dev
sudo apt install cmake llvm-3.9 clang-3.9 lldb-3.9 liblldb-3.9-dev libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev libcurl4-openssl-dev libssl-dev libkrb5-dev libnuma-dev autoconf automake libtool build-essential
if [ "$?" != "0" ]; then
exit 1;
fi
Expand All @@ -14,7 +14,7 @@ elif [ "$1" = "OSX" ]; then
if [ "$?" != "0" ]; then
exit 1;
fi
brew install icu4c openssl
brew install icu4c openssl autoconf automake libtool pkg-config python3
if [ "$?" != "0" ]; then
exit 1;
fi
Expand Down
4 changes: 4 additions & 0 deletions eng/liveBuilds.targets
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<MonoArtifactsPath Condition="'$(MonoOverridePath)' != ''">$([MSBuild]::NormalizeDirectory('$(MonoOverridePath)'))</MonoArtifactsPath>
<LibrariesArtifactsPath Condition="'$(LibrariesOverridePath)' != ''">$([MSBuild]::NormalizeDirectory('$(LibrariesOverridePath)'))</LibrariesArtifactsPath>
<LibrariesAllConfigurationsArtifactsPath Condition="'$(LibrariesAllConfigurationsOverridePath)' != ''">$([MSBuild]::NormalizeDirectory('$(LibrariesAllConfigurationsOverridePath)'))</LibrariesAllConfigurationsArtifactsPath>

<!-- Honor the RuntimeArtifactsPath property. -->
<CoreCLRArtifactsPath Condition="'$(CoreCLRArtifactsPath)' == ''">$(RuntimeArtifactsPath)</CoreCLRArtifactsPath>
<MonoArtifactsPath Condition="'$(MonoArtifactsPath)' == ''">$(RuntimeArtifactsPath)</MonoArtifactsPath>
</PropertyGroup>

<!--
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/common/build-coreclr-and-libraries-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
stagedBuild: ${{ parameters.stagedBuild }}
variables: ${{ parameters.variables }}
pool: ${{ parameters.pool }}
liveCoreClrBuildConfig: ${{ parameters.buildConfig }}
liveRuntimeBuildConfig: ${{ parameters.buildConfig }}
2 changes: 1 addition & 1 deletion eng/pipelines/common/global-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- ${{ if eq(parameters.osGroup, 'OSX') }}:
- script: |
$(setScriptToEchoAndFailOnNonZero)
brew install pkgconfig icu4c openssl
brew install pkgconfig icu4c openssl autoconf automake libtool pkg-config python3
brew link --force icu4c
ln -s /usr/local/opt/openssl/lib/pkgconfig/libcrypto.pc /usr/local/lib/pkgconfig/
ln -s /usr/local/opt/openssl/lib/pkgconfig/libssl.pc /usr/local/lib/pkgconfig/
Expand Down
29 changes: 23 additions & 6 deletions eng/pipelines/common/platform-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
parameters:
runtimeFlavor: 'coreclr'
jobTemplate: ''
buildConfig: ''
platforms: []
Expand Down Expand Up @@ -37,9 +38,10 @@ jobs:
archType: arm
platform: Linux_arm
container:
image: ubuntu-16.04-cross-14.04-23cacb0-20191023143847
image: ubuntu-16.04-cross-14.04-23cacb0-20200121150126
registry: mcr
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand All @@ -60,9 +62,10 @@ jobs:
archType: arm64
platform: Linux_arm64
container:
image: ubuntu-16.04-cross-arm64-cfdd435-20191023143847
image: ubuntu-16.04-cross-arm64-cfdd435-20200121150126
registry: mcr
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand All @@ -84,9 +87,14 @@ jobs:
archType: x64
platform: Linux_musl_x64
container:
image: alpine-3.9-WithNode-0fc54a3-20190918214015
# alpine coreclr cmake errors on newer builds
${{ if eq(parameters.runtimeFlavor, 'mono') }}:
image: alpine-3.9-WithNode-0fc54a3-20200121145958
${{ if ne(parameters.runtimeFlavor, 'mono') }}:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we open an issue for this and investigate? We should try to be consistent with the docker images we build with.

Also, instead of using != mono I would change this to == coreclr so that it is easier to read.

Suggested change
${{ if ne(parameters.runtimeFlavor, 'mono') }}:
${{ if eq(parameters.runtimeFlavor, 'coreclr') }}:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I'll file an issue for that as it's highly concerning. Just hadn't had time yet.

image: alpine-3.9-WithNode-0fc54a3-20190918214015
registry: mcr
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand All @@ -111,9 +119,10 @@ jobs:
archType: arm64
platform: Linux_musl_arm64
container:
image: ubuntu-16.04-cross-arm64-alpine-406629a-20191023143847
image: ubuntu-16.04-cross-arm64-alpine-406629a-20200121150126
registry: mcr
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand All @@ -134,9 +143,10 @@ jobs:
archType: x64
platform: Linux_x64
container:
image: centos-7-f39df28-20191023143754
image: centos-7-bfcd90a-20200121150017
registry: mcr
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand All @@ -159,9 +169,10 @@ jobs:
archType: wasm
platform: WebAssembly_wasm
container:
image: ubuntu-16.04-a50a721-20191023143845
image: ubuntu-16.04-bfcd90a-20200121150106
registry: mcr
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand All @@ -179,6 +190,7 @@ jobs:
# osGroup: FreeBSD
# archType: x64
# jobParameters:
# runtimeFlavor: ${{ parameters.runtimeFlavor }}
# buildConfig: ${{ parameters.buildConfig }}
# # There are no FreeBSD helix queues, so we don't run tests at the moment.
# helixQueues:
Expand All @@ -197,6 +209,7 @@ jobs:
archType: x64
platform: OSX_x64
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand All @@ -216,6 +229,7 @@ jobs:
archType: x64
platform: Windows_NT_x64
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand All @@ -235,6 +249,7 @@ jobs:
archType: x86
platform: Windows_NT_x86
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand All @@ -253,6 +268,7 @@ jobs:
archType: arm
platform: Windows_NT_arm
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand All @@ -272,6 +288,7 @@ jobs:
archType: arm64
platform: Windows_NT_arm64
jobParameters:
runtimeFlavor: ${{ parameters.runtimeFlavor }}
stagedBuild: ${{ parameters.stagedBuild }}
buildConfig: ${{ parameters.buildConfig }}
${{ if eq(parameters.passPlatforms, true) }}:
Expand Down
7 changes: 7 additions & 0 deletions eng/pipelines/common/xplat-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ jobs:
- name: ROOTFS_DIR
value: ${{ parameters.jobParameters.crossrootfsDir }}

- ${{ if ne(parameters.jobParameters.runtimeFlavor, '') }}:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runtimeFlavor should always be passed down as a jobParameter since platform-matrix is passing it down always, so no need to have this empty check any more.

- name: runtimeFlavorName
${{ if eq(parameters.jobParameters.runtimeFlavor, 'mono') }}:
value: Mono
${{ if eq(parameters.jobParameters.runtimeFlavor, 'coreclr') }}:
value: CoreCLR

osGroup: ${{ parameters.osGroup }}
osSubgroup: ${{ parameters.osSubgroup }}
archType: ${{ parameters.archType }}
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
platformGroup: all
jobParameters:
isOfficialBuild: false
liveCoreClrBuildConfig: checked
liveRuntimeBuildConfig: checked

#
# Checked test builds
Expand Down
Loading