diff --git a/.azurepipelines/MuDevOpsWrapper.yml b/.azurepipelines/MuDevOpsWrapper.yml new file mode 100644 index 0000000000..543f30f36e --- /dev/null +++ b/.azurepipelines/MuDevOpsWrapper.yml @@ -0,0 +1,89 @@ +## @file +# Azure Pipeline build file for a build using mu_devops. +# +# NOTE: This file is automatically synchronized from Mu DevOps. Update the original file there +# instead of the file in this repo. +# +# - Mu DevOps Repo: https://github.com/microsoft/mu_devops +# - File Sync Settings: https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## + +resources: + repositories: + - repository: mu_devops + type: github + endpoint: microsoft + name: microsoft/mu_devops + ref: refs/tags/v4.0.0 + +parameters: +- name: do_ci_build + displayName: Perform Stuart CI Build + type: boolean + default: true +- name: do_ci_setup + displayName: Perform Stuart CI Setup + type: boolean + default: true +- name: do_non_ci_build + displayName: Perform non-CI Stuart Build + type: boolean + default: false +- name: do_non_ci_setup + displayName: Perform non-CI Stuart Setup + type: boolean + default: false +- name: do_pr_eval + displayName: Perform Stuart PR Evaluation + type: boolean + default: true +- name: container_build + displayName: Flag for whether this repo should do stuart_setup + type: boolean + default: false +- name: os_type + displayName: OS type on the self-hosted agent pools + type: string + values: + - Windows_NT + - Linux + default: Windows_NT +- name: build_matrix + displayName: Build matrix for this repository + type: object +- name: pool_name + displayName: Variable name that hosts pool name to be used for self-hosted agents + type: string + default: pool_name +- name: extra_install_step + displayName: Extra Install Steps + type: stepList + default: + - script: echo No extra steps provided +- name: extra_jobs + displayName: Extra Jobs to be run after build + type: jobList + default: [] + +jobs: +- template: Jobs/PrGate.yml@mu_devops + parameters: + linux_container_image: ghcr.io/microsoft/mu_devops/ubuntu-22-build:4a1f8d3 + do_ci_build: ${{ parameters.do_ci_build }} + do_ci_setup: ${{ parameters.do_ci_setup }} + do_pr_eval: ${{ parameters.do_pr_eval }} + do_non_ci_setup: ${{ parameters.do_non_ci_setup }} + do_non_ci_build: ${{ parameters.do_non_ci_build }} + build_matrix: ${{ parameters.build_matrix }} + os_type: ${{ parameters.os_type }} + pool_name: ${{ parameters.pool_name }} + extra_install_step: ${{ parameters.extra_install_step }} + tool_chain_tag: $(tool_chain_tag) + vm_image: $(vm_image) + container_build: ${{ parameters.container_build }} + +- ${{ parameters.extra_jobs }} + diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 44b3b58f34..1fec7f886f 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -25,5 +25,5 @@ jobs: approval_check: if: | github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'uefibot' - uses: microsoft/mu_devops/.github/workflows/AutoApprover.yml@v3.0.0 + uses: microsoft/mu_devops/.github/workflows/AutoApprover.yml@v4.0.0 secrets: inherit diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 54daa16f4e..2003aefb7e 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -26,5 +26,5 @@ jobs: merge_check: if: | github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'uefibot' - uses: microsoft/mu_devops/.github/workflows/AutoMerger.yml@v3.0.0 + uses: microsoft/mu_devops/.github/workflows/AutoMerger.yml@v4.0.0 secrets: inherit diff --git a/.github/workflows/issue-assignment.yml b/.github/workflows/issue-assignment.yml index 9c12399286..fb1707d0eb 100644 --- a/.github/workflows/issue-assignment.yml +++ b/.github/workflows/issue-assignment.yml @@ -18,4 +18,4 @@ on: jobs: apply: - uses: microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v3.0.0 + uses: microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v4.0.0 diff --git a/.github/workflows/label-issues.yml b/.github/workflows/label-issues.yml index 42463206c3..4c7d3ca182 100644 --- a/.github/workflows/label-issues.yml +++ b/.github/workflows/label-issues.yml @@ -31,4 +31,4 @@ on: jobs: apply: - uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v3.0.0 + uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v4.0.0 diff --git a/.github/workflows/label-sync.yml b/.github/workflows/label-sync.yml index 7e0cebca2a..5932eecd6b 100644 --- a/.github/workflows/label-sync.yml +++ b/.github/workflows/label-sync.yml @@ -24,4 +24,4 @@ on: jobs: sync: - uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v3.0.0 + uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v4.0.0 diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml index 5493878552..1a99fbfb03 100644 --- a/.github/workflows/release-draft.yml +++ b/.github/workflows/release-draft.yml @@ -27,5 +27,5 @@ on: jobs: draft: - uses: microsoft/mu_devops/.github/workflows/ReleaseDrafter.yml@v3.0.0 + uses: microsoft/mu_devops/.github/workflows/ReleaseDrafter.yml@v4.0.0 secrets: inherit diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 924e78f15b..be6f005e83 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -24,4 +24,4 @@ on: jobs: check: - uses: microsoft/mu_devops/.github/workflows/Stale.yml@v3.0.0 + uses: microsoft/mu_devops/.github/workflows/Stale.yml@v4.0.0 diff --git a/.github/workflows/triage-issues.yml b/.github/workflows/triage-issues.yml index 2841bb5b53..fc4a91abc7 100644 --- a/.github/workflows/triage-issues.yml +++ b/.github/workflows/triage-issues.yml @@ -19,4 +19,4 @@ on: jobs: triage: - uses: microsoft/mu_devops/.github/workflows/IssueTriager.yml@v3.0.0 + uses: microsoft/mu_devops/.github/workflows/IssueTriager.yml@v4.0.0