|
| 1 | +# A workflow to build EDKII packages using the CLANGPDB toolchain in windows and ubuntu environments. |
| 2 | +# |
| 3 | +# NOTE: This file is automatically synchronized from Mu DevOps to keep the version of the |
| 4 | +# workflow up to date. Update the original file there instead of the file in this repo. |
| 5 | +# |
| 6 | +# - Mu DevOps Repo: https://github.com/microsoft/mu_devops |
| 7 | +# - File Sync Settings: https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml |
| 8 | +# |
| 9 | +# Copyright (c) Microsoft Corporation. |
| 10 | +# |
| 11 | +# SPDX-License-Identifier: BSD-2-Clause-Patent |
| 12 | +# |
| 13 | +# NOTE: Because this pipeline YAML file is a Nunjucks template, the pipeline syntax of `{{}}` will conflict with |
| 14 | +# Nunjucks style. Surround pipeline YAML code that uses `{{}}` within `raw` and `endraw` tags |
| 15 | +# to allow it to pass through Nunjucks processing. |
| 16 | + |
| 17 | +name: CLANGPDB Package CI |
| 18 | + |
| 19 | +on: |
| 20 | + workflow_dispatch: |
| 21 | + push: |
| 22 | + branches: |
| 23 | + - main |
| 24 | + pull_request: |
| 25 | + branches: |
| 26 | + - main |
| 27 | + |
| 28 | +jobs: |
| 29 | + package-matrix: |
| 30 | + name: Gather Repository Packages |
| 31 | + uses: microsoft/mu_devops/.github/workflows/PackageMatrix.yml@v18.0.4 |
| 32 | + with: |
| 33 | + ci-config: '.pytool/CISettings.py' |
| 34 | + python-version: "3.12" |
| 35 | + # Default config applied to any undeclared packages in the repo |
| 36 | + default-config: | |
| 37 | + targets: ["DEBUG,RELEASE"] |
| 38 | + toolchain: ["CLANGPDB"] |
| 39 | +
|
| 40 | + windows-ci: |
| 41 | + name: Windows CLANGPDB CI |
| 42 | + |
| 43 | + if: ${{ needs.package-matrix.outputs.matrix != '' }} |
| 44 | + |
| 45 | + needs: package-matrix |
| 46 | + |
| 47 | + uses: microsoft/mu_devops/.github/workflows/PackageCi.yml@v18.0.4 |
| 48 | + |
| 49 | + with: |
| 50 | + runner: windows-latest |
| 51 | + setup-cmd: ci-setup |
| 52 | + python-version: "3.12" |
| 53 | + package-config: ${{ needs.package-matrix.outputs.matrix }} |
| 54 | + |
| 55 | + |
| 56 | + ubuntu-ci: |
| 57 | + name: Ubuntu CLANGPDB CI |
| 58 | + |
| 59 | + if: ${{ needs.package-matrix.outputs.matrix != '' }} |
| 60 | + |
| 61 | + needs: package-matrix |
| 62 | + |
| 63 | + uses: microsoft/mu_devops/.github/workflows/PackageCi.yml@v18.0.4 |
| 64 | + |
| 65 | + with: |
| 66 | + runner: ubuntu-latest |
| 67 | + setup-cmd: ci-setup |
| 68 | + container: ghcr.io/microsoft/mu_devops/ubuntu-24-build:737aacc |
| 69 | + python-version: "3.12" |
| 70 | + package-config: ${{ needs.package-matrix.outputs.matrix }} |
| 71 | + |
0 commit comments