Skip to content

Commit

Permalink
Release.yaml: Update to work with self-hosted agent change
Browse files Browse the repository at this point in the history
Updates the pipeline to pass a matrix object to the
Platform-Build-Job.yml template.

Signed-off-by: Michael Kubacki <[email protected]>
  • Loading branch information
makubacki committed Jun 7, 2023
1 parent 8e0d89d commit 16dc59f
Showing 1 changed file with 136 additions and 13 deletions.
149 changes: 136 additions & 13 deletions .azurepipelines/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resources:
type: github
endpoint: microsoft
name: microsoft/mu_devops
ref: refs/tags/v2.5.2
ref: main

name: $(Date:yyyyMMdd)$(Rev:.r) Mu Tiano Platforms Release

Expand All @@ -27,21 +27,144 @@ stages:
jobs:
- template: Platform-Build-Job.yml
parameters:
extra_install_step:
- script: sudo dnf --assumeyes install openssl-devel
displayName: Install openssl
container_image: ghcr.io/tianocore/containers/fedora-37-test:54e5bd1
tool_chain_tag: GCC5
vm_image: ubuntu-latest
tool_chain_tag: 'GCC5'
vm_image: ubuntu-latest
os_type: Linux
container_image: linux-gcc
build_matrix:
QemuQ35_DEBUG:
BuildPackage: QemuQ35Pkg
BuildFile: "Platforms/QemuQ35Pkg/PlatformBuild.py"
BuildArch: IA32,X64
BuildFlags: ""
BuildTarget: "DEBUG"
BuildExtraTag: ""
BuildExtraStep:
- script: echo No extra steps provided
Run: true
RunFlags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE EMPTY_DRIVE=TRUE BLD_*_QEMU_CORE_NUM=2 TEST_REGEX=*TestApp*.efi RUN_TESTS=TRUE"
BuildArtifactsBinary: |
**/QEMUQ35_*.fd
BuildArtifactsOther: "**/unit_test_results/*"

QemuQ35_RELEASE:
BuildPackage: QemuQ35Pkg
BuildFile: "Platforms/QemuQ35Pkg/PlatformBuild.py"
BuildArch: IA32,X64
BuildFlags: ""
BuildTarget: "RELEASE"
BuildExtraTag: ""
BuildExtraStep:
- script: echo No extra steps provided
Run: true
RunFlags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE EMPTY_DRIVE=TRUE BLD_*_QEMU_CORE_NUM=2 TEST_REGEX=*TestApp*.efi RUN_TESTS=TRUE"
BuildArtifactsBinary: |
**/QEMUQ35_*.fd
BuildArtifactsOther: "**/unit_test_results/*"

QemuQ35_NO_SMM_RELEASE:
BuildPackage: QemuQ35Pkg
BuildFile: "Platforms/QemuQ35Pkg/PlatformBuild.py"
BuildArch: IA32,X64
BuildFlags: "BLD_*_SMM_ENABLED=FALSE"
BuildTarget: "RELEASE"
BuildExtraTag: "NO_SMM"
BuildExtraStep:
- script: echo No extra steps provided
Run: true
RunFlags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE BLD_*_QEMU_CORE_NUM=2 BLD_*_SMM_ENABLED=FALSE"
BuildArtifactsBinary: |
**/QEMUQ35_*.fd
BuildArtifactsOther: ""

QemuSbsa_DEBUG:
BuildPackage: QemuSbsaPkg
BuildFile: "Platforms/QemuSbsaPkg/PlatformBuild.py"
BuildArch: AARCH64
BuildFlags: ""
BuildTarget: "DEBUG"
BuildExtraTag: ""
BuildExtraStep:
- script: sudo dnf --assumeyes install openssl-devel
displayName: Install openssl
Run: true
RunFlags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE EMPTY_DRIVE=TRUE TEST_REGEX=*TestApp*.efi RUN_TESTS=TRUE"
BuildArtifactsBinary: |
**/QEMU_EFI.fd
**/SECURE_FLASH0.fd
BuildArtifactsOther: "**/unit_test_results/*"

QemuSbsa_RELEASE:
BuildPackage: QemuSbsaPkg
BuildFile: "Platforms/QemuSbsaPkg/PlatformBuild.py"
BuildArch: AARCH64
BuildFlags: ""
BuildTarget: "RELEASE"
BuildExtraTag: ""
BuildExtraStep:
- script: sudo dnf --assumeyes install openssl-devel
displayName: Install openssl
Run: true
RunFlags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE EMPTY_DRIVE=TRUE TEST_REGEX=*TestApp*.efi RUN_TESTS=TRUE"
BuildArtifactsBinary: |
**/QEMU_EFI.fd
**/SECURE_FLASH0.fd
BuildArtifactsOther: "**/unit_test_results/*"

- template: Platform-Build-Job.yml
parameters:
extra_install_step:
- powershell: choco install qemu --version=2022.8.31; Write-Host "##vso[task.prependpath]c:\Program Files\qemu"
displayName: Install QEMU and Set QEMU on path
condition: and(gt(variables.pkg_count, 0), succeeded())
tool_chain_tag: VS2022
vm_image: windows-latest
extra_install_step:
- powershell: choco install qemu --version=2022.8.31; Write-Host "##vso[task.prependpath]c:\Program Files\qemu"
displayName: Install QEMU and Set QEMU on path # friendly name displayed in the UI
condition: and(gt(variables.pkg_count, 0), succeeded())
tool_chain_tag: 'VS2022'
vm_image: windows-latest
os_type: Windows_NT
build_matrix:
QemuQ35_DEBUG:
BuildPackage: QemuQ35Pkg
BuildFile: "Platforms/QemuQ35Pkg/PlatformBuild.py"
BuildArch: IA32,X64
BuildFlags: ""
BuildTarget: "DEBUG"
BuildExtraTag: ""
BuildExtraStep:
- script: echo No extra steps provided
Run: true
RunFlags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE EMPTY_DRIVE=TRUE BLD_*_QEMU_CORE_NUM=2 TEST_REGEX=*TestApp*.efi RUN_TESTS=TRUE"
BuildArtifactsBinary: |
**/QEMUQ35_*.fd
BuildArtifactsOther: "**/unit_test_results/*"

QemuQ35_RELEASE:
BuildPackage: QemuQ35Pkg
BuildFile: "Platforms/QemuQ35Pkg/PlatformBuild.py"
BuildArch: IA32,X64
BuildFlags: ""
BuildTarget: "RELEASE"
BuildExtraTag: ""
BuildExtraStep:
- script: echo No extra steps provided
Run: true
RunFlags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE EMPTY_DRIVE=TRUE BLD_*_QEMU_CORE_NUM=2 TEST_REGEX=*TestApp*.efi RUN_TESTS=TRUE"
BuildArtifactsBinary: |
**/QEMUQ35_*.fd
BuildArtifactsOther: "**/unit_test_results/*"

QemuQ35_NO_SMM_RELEASE:
BuildPackage: QemuQ35Pkg
BuildFile: "Platforms/QemuQ35Pkg/PlatformBuild.py"
BuildArch: IA32,X64
BuildFlags: "BLD_*_SMM_ENABLED=FALSE"
BuildTarget: "RELEASE"
BuildExtraTag: "NO_SMM"
BuildExtraStep:
- script: echo No extra steps provided
Run: true
RunFlags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE BLD_*_QEMU_CORE_NUM=2 BLD_*_SMM_ENABLED=FALSE"
BuildArtifactsBinary: |
**/QEMUQ35_*.fd
BuildArtifactsOther: ""

- stage: PublishReleaseArtifacts
displayName: Publish Release Artifacts
Expand Down

0 comments on commit 16dc59f

Please sign in to comment.