diff --git a/.azurepipelines/Ubuntu-GCC5.yml b/.azurepipelines/Ubuntu-GCC5.yml index 5dc1bc3..74172bb 100644 --- a/.azurepipelines/Ubuntu-GCC5.yml +++ b/.azurepipelines/Ubuntu-GCC5.yml @@ -1,35 +1,40 @@ -## @file -# Azure Pipeline build file for a build using ubuntu and GCC -# -# Copyright (c) Microsoft Corporation. -# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.
-# SPDX-License-Identifier: BSD-2-Clause-Patent -## - -resources: - repositories: - - repository: mu_devops - type: github - endpoint: microsoft - name: microsoft/mu_devops - ref: main - -variables: -- group: architectures-arm-64-x86-64 -- group: tool-chain-ubuntu-gcc - -jobs: -- template: Jobs/PrGate.yml@mu_devops - parameters: - arch_list: $(arch_list) - do_ci_build: true - do_ci_setup: true - do_non_ci_setup: true - extra_steps: - - script: sudo apt-get install mingw-w64 - displayName: Install Windows Resource Compiler for Linux - packages: OemPkg - target_list: DEBUG,RELEASE,NO-TARGET,NOOPT - tool_chain_tag: $(tool_chain_tag) - vm_image: $(vm_image) - +## @file +# Azure Pipeline build file for a build using ubuntu and GCC5. +# +# 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/v1.3.0 + +variables: +- group: architectures-arm-64-x86-64 +- group: tool-chain-ubuntu-gcc + +jobs: +- template: Jobs/PrGate.yml@mu_devops + parameters: + arch_list: $(arch_list) + do_ci_build: true + do_ci_setup: true + do_non_ci_setup: true + extra_steps: + - script: sudo microdnf install --assumeyes mingw64-gcc + displayName: Install Windows Resource Compiler for Linux + packages: OemPkg + target_list: DEBUG,RELEASE,NO-TARGET,NOOPT + tool_chain_tag: $(tool_chain_tag) + vm_image: $(vm_image) + container_build: true diff --git a/.azurepipelines/Windows-VS.yml b/.azurepipelines/Windows-VS.yml index f4d7197..31cfd5a 100644 --- a/.azurepipelines/Windows-VS.yml +++ b/.azurepipelines/Windows-VS.yml @@ -1,30 +1,36 @@ -## @file -# Azure Pipeline build file for a build using Windows and the Visual Studio compiler -# -# 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: main - -variables: -- group: architectures-x86-64 -- group: tool-chain-windows-visual-studio-latest - -jobs: -- template: Jobs/PrGate.yml@mu_devops - parameters: - arch_list: $(arch_list) - do_ci_build: true - do_ci_setup: true - do_non_ci_setup: true - packages: OemPkg - target_list: DEBUG,RELEASE,NO-TARGET,NOOPT - tool_chain_tag: $(tool_chain_tag) - vm_image: $(vm_image) +## @file +# Azure Pipeline build file for a build using Windows and Visual Studio. +# +# 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/v1.3.0 + +variables: +- group: architectures-x86-64 +- group: tool-chain-windows-visual-studio-latest + +jobs: +- template: Jobs/PrGate.yml@mu_devops + parameters: + arch_list: $(arch_list) + do_ci_build: true + do_ci_setup: true + do_non_ci_setup: true + packages: OemPkg + target_list: DEBUG,RELEASE,NO-TARGET,NOOPT + tool_chain_tag: $(tool_chain_tag) + vm_image: $(vm_image) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..ebcf852 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,12 @@ +{ + "image": "ghcr.io/tianocore/containers/fedora-35-dev:latest", + "postCreateCommand": "git config --global --add safe.directory * && pip install --upgrade -r pip-requirements.txt", + "customizations": { + "vscode": { + "extensions": [ + "ms-vscode.cpptools", + "DavidAnson.vscode-markdownlint" + ] + } + } +} \ No newline at end of file diff --git a/.github/advanced-issue-labeler.yml b/.github/advanced-issue-labeler.yml new file mode 100644 index 0000000..7831f2f --- /dev/null +++ b/.github/advanced-issue-labeler.yml @@ -0,0 +1,42 @@ +# Defines the mappings between GitHub issue responses and labels applied to the issue +# for Project Mu repos. +# +# IMPORTANT: Only use labels defined in the .github/Labels.yml file in this repo. +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# For more information, see: +# https://github.com/redhat-plumbers-in-action/advanced-issue-labeler + +policy: + - template: [bug_report.yml, documentation_request.yml, feature_request.yml] + section: + + # Issue Template - Urgency Dropdown + - id: ['urgency'] + block-list: [] + label: + - name: 'urgency:low' + keys: ['Low'] + - name: 'urgency:medium' + keys: ['Medium'] + - name: 'urgency:high' + keys: ['High'] + + # Issue Template - Fix Owner Dropdown + - id: ['fix_owner', 'request_owner'] + block-list: [] + label: + - name: 'state:needs-owner' + keys: [ + 'Someone else needs to fix it', + 'Someone else needs to make the change', + 'Someone else needs to implement the feature' + ] + - name: 'state:needs-triage' + keys: [ + 'Someone else needs to fix it', + 'Someone else needs to make the change', + 'Someone else needs to implement the feature' + ] diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000..22da5d6 --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,39 @@ +# This workflow automatically merges pull requests under certain conditions. +# +# NOTE: This file is automatically synchronized from Mu DevOps. Update the original file there +# instead of the file in this repo. +# +# NOTE: This file uses a reusable workflow. Do not make changes to the file that should be made +# in the common/reusable workflow. +# +# - 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 +# + +name: Auto Merge Pull Request + +on: + pull_request_target: + types: + - edited + - labeled + - opened + - ready_for_review + - reopened + - synchronize + - unlabeled + - unlocked + pull_request_review: + types: + - submitted + check_suite: + types: + - completed + status: {} + +jobs: + merge_check: + uses: microsoft/mu_devops/.github/workflows/AutoMerger.yml@v1.3.0 diff --git a/.github/workflows/label-issues.yml b/.github/workflows/label-issues.yml index 2ad0297..9c530d3 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@main + uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v1.3.0 diff --git a/.github/workflows/label-issues/regex-pull-requests.yml b/.github/workflows/label-issues/regex-pull-requests.yml index 175d3c3..26d6e5d 100644 --- a/.github/workflows/label-issues/regex-pull-requests.yml +++ b/.github/workflows/label-issues/regex-pull-requests.yml @@ -12,7 +12,7 @@ impact:breaking-change: - '\s*-\s*\[\s*[x|X]\s*\] Breaking change\?' impact:non-functional: - - '\s*-\s*\[\s*[x|X]\s*\] Impacts functionality\?' + - '\s*-\s*\[\s*(?![x|X])\s*\] Impacts functionality\?' impact:security: - '\s*-\s*\[\s*[x|X]\s*\] Impacts security\?' diff --git a/.github/workflows/label-sync.yml b/.github/workflows/label-sync.yml index e7b493e..9fe1f0a 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@main + uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v1.3.0 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 043c26b..50990e5 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@main + uses: microsoft/mu_devops/.github/workflows/Stale.yml@v1.3.0 diff --git a/.github/workflows/triage-issues.yml b/.github/workflows/triage-issues.yml new file mode 100644 index 0000000..8a12fb7 --- /dev/null +++ b/.github/workflows/triage-issues.yml @@ -0,0 +1,22 @@ +# This workflow assists with initial triage of new issues by applying +# labels based on data provided in the issue. +# +# 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 +# + +name: Initial Triage for New Issue + +on: + issues: + types: [ opened ] + +jobs: + sync: + uses: microsoft/mu_devops/.github/workflows/IssueTriager.yml@v1.3.0