Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo File Sync: Update to Ubuntu 24.04 and Mu DevOps 13.0.0 #56

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 88 additions & 88 deletions .azurepipelines/BuildAndTest.yml
Original file line number Diff line number Diff line change
@@ -1,88 +1,88 @@
## @file
# Azure Pipeline build file to build and test code in this repo.
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##

trigger:
- main

pr:
- main

resources:
repositories:
- repository: mu_devops
type: github
endpoint: microsoft
name: microsoft/mu_devops
ref: main

parameters:
- name: matrix
type: object
default:
Linux:
ImageName: ubuntu-latest
ContainerImage: ghcr.io/microsoft/mu_devops/ubuntu-22-build:latest
Windows:
ImageName: windows-latest

variables:
- group: coverage

jobs:
- ${{ each item in parameters.matrix }}:
- job: BuildAndTest_${{ item.Key }}
displayName: Build and Test ${{ item.Key }}

pool:
vmImage: ${{ item.Value.ImageName }}

${{ if item.Value.ContainerImage }}:
container:
image: ${{ item.Value.ContainerImage }}
options: --user root --name mu_devops_build_container --security-opt seccomp=unconfined

workspace:
clean: all

steps:
- checkout: self
fetchDepth: 1
clean: true

# Only run on Windows since it does not use a container and can
# depend on a wider toolset provided in the VM image.
- ${{ if eq(item.Value.ImageName, 'windows-latest') }}:
- template: Steps/InstallMarkdownLint.yml@mu_devops
- template: Steps/RunMarkdownLint.yml@mu_devops
- template: Steps/InstallSpellCheck.yml@mu_devops
- template: Steps/RunSpellCheck.yml@mu_devops
parameters:
spell_check_parameters: "-c cspell.json **/*.md **/*.py **/*.rs"
- template: Steps/RustSetupSteps.yml@mu_devops
- template: Steps/RustCargoSteps.yml@mu_devops
parameters:
test_command: "cargo tarpaulin --all --out xml --output-dir $(Build.StagingDirectory)"
build_command: "cargo build"
- task: PythonScript@0
displayName: Rename coverage file
env:
OUTPUT_DIR: $(Build.StagingDirectory)
inputs:
scriptSource: inline
script: |
import os
import pathlib

OUTPUT_DIR = os.environ['OUTPUT_DIR']
original = pathlib.Path(OUTPUT_DIR, 'cobertura.xml')
new = pathlib.Path(OUTPUT_DIR, 'coverage.xml')
original.replace(new)

- template: Steps/UploadCodeCoverage.yml@mu_devops
parameters:
report_dir: $(Build.StagingDirectory)
install_dependencies: false
## @file
# Azure Pipeline build file to build and test code in this repo.
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
trigger:
- main
pr:
- main
resources:
repositories:
- repository: mu_devops
type: github
endpoint: microsoft
name: microsoft/mu_devops
ref: main
parameters:
- name: matrix
type: object
default:
Linux:
ImageName: ubuntu-latest
ContainerImage: ghcr.io/microsoft/mu_devops/ubuntu-24-build:latest
Windows:
ImageName: windows-latest
variables:
- group: coverage
jobs:
- ${{ each item in parameters.matrix }}:
- job: BuildAndTest_${{ item.Key }}
displayName: Build and Test ${{ item.Key }}
pool:
vmImage: ${{ item.Value.ImageName }}
${{ if item.Value.ContainerImage }}:
container:
image: ${{ item.Value.ContainerImage }}
options: --user root --name mu_devops_build_container --security-opt seccomp=unconfined
workspace:
clean: all
steps:
- checkout: self
fetchDepth: 1
clean: true
# Only run on Windows since it does not use a container and can
# depend on a wider toolset provided in the VM image.
- ${{ if eq(item.Value.ImageName, 'windows-latest') }}:
- template: Steps/InstallMarkdownLint.yml@mu_devops
- template: Steps/RunMarkdownLint.yml@mu_devops
- template: Steps/InstallSpellCheck.yml@mu_devops
- template: Steps/RunSpellCheck.yml@mu_devops
parameters:
spell_check_parameters: "-c cspell.json **/*.md **/*.py **/*.rs"
- template: Steps/RustSetupSteps.yml@mu_devops
- template: Steps/RustCargoSteps.yml@mu_devops
parameters:
test_command: "cargo tarpaulin --all --out xml --output-dir $(Build.StagingDirectory)"
build_command: "cargo build"
- task: PythonScript@0
displayName: Rename coverage file
env:
OUTPUT_DIR: $(Build.StagingDirectory)
inputs:
scriptSource: inline
script: |
import os
import pathlib
OUTPUT_DIR = os.environ['OUTPUT_DIR']
original = pathlib.Path(OUTPUT_DIR, 'cobertura.xml')
new = pathlib.Path(OUTPUT_DIR, 'coverage.xml')
original.replace(new)
- template: Steps/UploadCodeCoverage.yml@mu_devops
parameters:
report_dir: $(Build.StagingDirectory)
install_dependencies: false
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:

if: |
github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'uefibot'
uses: microsoft/mu_devops/.github/workflows/AutoMerger.yml@v12.4.0
uses: microsoft/mu_devops/.github/workflows/AutoMerger.yml@v13.0.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/issue-assignment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
contents: read
issues: write

uses: microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v12.4.0
uses: microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v13.0.0
2 changes: 1 addition & 1 deletion .github/workflows/label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
contents: read
pull-requests: write

uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v12.4.0
uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v13.0.0
2 changes: 1 addition & 1 deletion .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
permissions:
issues: write

uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v12.4.0
uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v13.0.0
2 changes: 1 addition & 1 deletion .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ jobs:
contents: write
pull-requests: write

uses: microsoft/mu_devops/.github/workflows/ReleaseDrafter.yml@v12.4.0
uses: microsoft/mu_devops/.github/workflows/ReleaseDrafter.yml@v13.0.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
issues: write
pull-requests: write

uses: microsoft/mu_devops/.github/workflows/Stale.yml@v12.4.0
uses: microsoft/mu_devops/.github/workflows/Stale.yml@v13.0.0
2 changes: 1 addition & 1 deletion .github/workflows/triage-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
permissions:
issues: write

uses: microsoft/mu_devops/.github/workflows/IssueTriager.yml@v12.4.0
uses: microsoft/mu_devops/.github/workflows/IssueTriager.yml@v13.0.0