-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start moving over to official templates
- Loading branch information
Showing
18 changed files
with
351 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
231 changes: 120 additions & 111 deletions
231
eng/pipelines/common/templates/pipeline-with-resources.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,114 +1,123 @@ | ||
parameters: | ||
- name: stages | ||
type: stageList | ||
|
||
resources: | ||
containers: | ||
- container: linux_arm | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm | ||
|
||
- container: linux_armv6 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-20.04-cross-armv6-raspbian-10 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/armv6 | ||
|
||
- container: linux_arm64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-biarch-amd64-arm64 | ||
env: | ||
ROOTFS_HOST_DIR: /crossrootfs/x64 | ||
ROOTFS_DIR: /crossrootfs/arm64 | ||
|
||
- container: linux_musl_x64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-amd64-alpine | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
- container: linux_musl_arm | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm-alpine | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm | ||
|
||
- container: linux_musl_arm64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm64-alpine | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm64 | ||
|
||
# This container contains all required toolsets to build for Android and for Linux with bionic libc. | ||
- container: linux_bionic | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-android-amd64 | ||
|
||
# This container contains all required toolsets to build for Android as well as tooling to build docker images. | ||
- container: android_docker | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-android-docker | ||
|
||
- container: linux_x64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-amd64 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
- container: linux_x86 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-x86 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x86 | ||
|
||
- container: linux_x64_dev_innerloop | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04 | ||
|
||
# We use a CentOS Stream 8 image here to test building from source on CentOS Stream 8. | ||
- container: SourceBuild_centos_x64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8 | ||
|
||
# AlmaLinux 8 is a RHEL 8 rebuild, so we use it to test building from source on RHEL 8. | ||
- container: SourceBuild_linux_x64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:almalinux-8-source-build | ||
|
||
- container: linux_s390x | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-s390x | ||
env: | ||
ROOTFS_DIR: /crossrootfs/s390x | ||
|
||
- container: linux_ppc64le | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-ppc64le | ||
env: | ||
ROOTFS_DIR: /crossrootfs/ppc64le | ||
|
||
- container: linux_riscv64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-riscv64 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/riscv64 | ||
|
||
- container: debian-12-gcc13-amd64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:debian-12-gcc13-amd64 | ||
|
||
- container: linux_x64_llvmaot | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8 | ||
|
||
- container: browser_wasm | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-webassembly-20230913040940-1edc1c6 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
- container: wasi_wasm | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-webassembly | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
- container: freebsd_x64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-amd64-freebsd-13 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
- container: tizen_armel | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-armel-tizen | ||
env: | ||
ROOTFS_DIR: /crossrootfs/armel | ||
|
||
- container: debpkg | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg | ||
|
||
- container: rpmpkg | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm | ||
|
||
stages: ${{ parameters.stages }} | ||
- name: isOfficialBuild | ||
type: boolean | ||
|
||
extends: | ||
template: templateDispatch.yml | ||
parameters: | ||
${{ if parameters.isOfficialBuild }}: | ||
templatePath: template1es.yml | ||
${{ else }}: | ||
templatePath: templatePublic.yml | ||
|
||
stages: ${{ parameters.stages }} | ||
|
||
containers: | ||
linux_arm: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm | ||
|
||
linux_armv6: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-20.04-cross-armv6-raspbian-10 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/armv6 | ||
|
||
linux_arm64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-biarch-amd64-arm64 | ||
env: | ||
ROOTFS_HOST_DIR: /crossrootfs/x64 | ||
ROOTFS_DIR: /crossrootfs/arm64 | ||
|
||
linux_musl_x64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-amd64-alpine | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
linux_musl_arm: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm-alpine | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm | ||
|
||
linux_musl_arm64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm64-alpine | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm64 | ||
|
||
# This container contains all required toolsets to build for Android and for Linux with bionic libc. | ||
linux_bionic: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-android-amd64 | ||
|
||
# This container contains all required toolsets to build for Android as well as tooling to build docker images. | ||
android_docker: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-android-docker | ||
|
||
linux_x64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-amd64 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
linux_x86: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-x86 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x86 | ||
|
||
linux_x64_dev_innerloop: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04 | ||
|
||
# We use a CentOS Stream 8 image here to test building from source on CentOS Stream 8. | ||
SourceBuild_centos_x64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8 | ||
|
||
# AlmaLinux 8 is a RHEL 8 rebuild, so we use it to test building from source on RHEL 8. | ||
SourceBuild_linux_x64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:almalinux-8-source-build | ||
|
||
linux_s390x: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-s390x | ||
env: | ||
ROOTFS_DIR: /crossrootfs/s390x | ||
|
||
linux_ppc64le: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-ppc64le | ||
env: | ||
ROOTFS_DIR: /crossrootfs/ppc64le | ||
|
||
linux_riscv64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-riscv64 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/riscv64 | ||
|
||
debian-12-gcc13-amd64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:debian-12-gcc13-amd64 | ||
|
||
linux_x64_llvmaot: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8 | ||
|
||
browser_wasm: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-webassembly-20230913040940-1edc1c6 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
wasi_wasm: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-webassembly | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
freebsd_x64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-amd64-freebsd-13 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
tizen_armel: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-armel-tizen | ||
env: | ||
ROOTFS_DIR: /crossrootfs/armel | ||
|
||
debpkg: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg | ||
|
||
rpmpkg: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm |
22 changes: 22 additions & 0 deletions
22
eng/pipelines/common/templates/publish-build-artifacts.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
parameters: | ||
- name: isOfficialBuild | ||
type: boolean | ||
- name: displayName | ||
type: string | ||
- name: inputs | ||
type: object | ||
- name: condition | ||
type: string | ||
default: '' | ||
|
||
steps: | ||
- ${{ if parameters.isOfficialBuild }}: | ||
- task: 1ES.PublishBuildArtifacts@1 | ||
displayName: ${{ parameters.displayName }} | ||
inputs: ${{ parameters.inputs }} | ||
condition: ${{ parameters.condition }} | ||
- ${{ else }}: | ||
- task: PublishBuildArtifacts@1 | ||
displayName: ${{ parameters.displayName }} | ||
inputs: ${{ parameters.inputs }} | ||
condition: ${{ parameters.condition }} |
17 changes: 17 additions & 0 deletions
17
eng/pipelines/common/templates/publish-pipeline-artifacts.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
parameters: | ||
- name: displayName | ||
type: string | ||
- name: inputs | ||
type: object | ||
- name: isOfficialBuild | ||
type: boolean | ||
|
||
steps: | ||
- ${{ if parameters.isOfficialBuild }}: | ||
- task: 1ES.PublishPipelineArtifact@1 | ||
displayName: ${{ parameters.displayName }} | ||
inputs: ${{ parameters.inputs }} | ||
- ${{ else }}: | ||
- task: PublishPipelineArtifact@1 | ||
displayName: ${{ parameters.displayName }} | ||
inputs: ${{ parameters.inputs }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.