Skip to content

Commit

Permalink
Repo File Sync: Update to Mu DevOps v12.2.0 and Python 3.12 (microsof…
Browse files Browse the repository at this point in the history
…t#382)

synced local file(s) with
[microsoft/mu_devops](https://github.com/microsoft/mu_devops).

🤖: View the [Repo File Sync Configuration
File](https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml)
to see how files are synced.

---

This PR was created automatically by the
[repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action)
workflow run
[#11508062787](https://github.com/microsoft/mu_devops/actions/runs/11508062787)

Co-authored-by: Michael Kubacki <[email protected]>
Signed-off-by: Project Mu UEFI Bot <[email protected]>
  • Loading branch information
uefibot and makubacki authored Oct 24, 2024
1 parent 9a1e6ba commit 4bebc96
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .github/actions/submodule-release-updater/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# A GitHub action to create pull requests for new releases of submodules in a repository.
#
# 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
#

# NOTE: Because this pipeline YAML file is a Nunjucks template, the pipeline syntax of `{{}}` will conflict with
# Nunjucks style. Surround pipeline YAML code that uses `{{}}` within `raw` and `endraw` tags
# to allow it to pass through Nunjucks processing.

name: 'Submodule Release Updater'

description: 'Checks if new releases are available for submodules and creates pull requests to update them.'
Expand Down Expand Up @@ -423,3 +433,4 @@ runs:
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh:
print(f'submodule-update-count={submodule_update_count}', file=fh)
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:

if: |
github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'uefibot'
uses: microsoft/mu_devops/.github/workflows/AutoApprover.yml@v12.0.2
uses: microsoft/mu_devops/.github/workflows/AutoApprover.yml@v12.2.0
secrets: inherit
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.0.2
uses: microsoft/mu_devops/.github/workflows/AutoMerger.yml@v12.2.0
secrets: inherit
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.0.2
uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v12.2.0
2 changes: 1 addition & 1 deletion .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
contents: write
pull-requests: write

uses: microsoft/mu_devops/.github/workflows/ReleaseDrafter.yml@v12.0.2
uses: microsoft/mu_devops/.github/workflows/ReleaseDrafter.yml@v12.2.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/stale-leaf.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.0.2
uses: microsoft/mu_devops/.github/workflows/Stale.yml@v12.2.0
26 changes: 21 additions & 5 deletions Containers/Ubuntu-22/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
# SPDX-License-Identifier: BSD-2-Clause-Patent
#

# NOTE: Because this pipeline YAML file is a Nunjucks template, the pipeline syntax of `{{}}` will conflict with
# Nunjucks style. Surround pipeline YAML code that uses `{{}}` within `raw` and `endraw` tags
# to allow it to pass through Nunjucks processing.

#
# The build container layer is intended for pipeline use and is the minimal set
# of tools required for building Project MU.
Expand Down Expand Up @@ -42,30 +46,40 @@ RUN apt-get update && \
curl \
flex \
git \
gnupg \
gnupg2 \
lcov \
jq \
m4 \
make \
mono-complete \
nasm \
npm \
python3 \
python3-pip \
python3-venv \
software-properties-common \
sudo \
unzip \
uuid-dev \
wget \
&& \
apt-get update && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys F23C5A6CF475977595C89F51BA6932366A755776 && \
add-apt-repository ppa:deadsnakes/ppa -y && \
apt-get update && \
apt-get install --yes --no-install-recommends \
python3.12 \
python3.12-distutils \
python3.12-venv \
g++-${GCC_MAJOR_VERSION} gcc-${GCC_MAJOR_VERSION} \
gcc-${GCC_MAJOR_VERSION}-x86-64-linux-gnux32 \
gcc-${GCC_MAJOR_VERSION}-aarch64-linux-gnu \
gcc-${GCC_MAJOR_VERSION}-riscv64-linux-gnu \
gcc-${GCC_MAJOR_VERSION}-arm-linux-gnueabi \
gcc-${GCC_MAJOR_VERSION}-arm-linux-gnueabihf \
&& \
curl -O https://bootstrap.pypa.io/get-pip.py && \
python3.12 get-pip.py && \
python3.12 -m pip install --upgrade setuptools && \
rm get-pip.py && \
apt-get upgrade -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -129,10 +143,11 @@ RUN mkdir cargo_downloads && \
# Alternatives
#


RUN update-alternatives \
--install /usr/bin/python python /usr/bin/python3.10 1 && \
--install /usr/bin/python python /usr/bin/python3.12 1 && \
update-alternatives \
--install /usr/bin/python3 python3 /usr/bin/python3.10 1 && \
--install /usr/bin/python3 python3 /usr/bin/python3.12 1 && \
update-alternatives \
--install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_MAJOR_VERSION} 100 \
--slave /usr/bin/g++ g++ /usr/bin/g++-${GCC_MAJOR_VERSION} \
Expand Down Expand Up @@ -213,3 +228,4 @@ RUN apt-get update && \
less \
&& \
apt-get clean

12 changes: 11 additions & 1 deletion Steps/SetupPythonPreReqs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
## @file
# Azure Pipelines step to setup Python pre-requisites.
#
# 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. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##

# NOTE: Because this pipeline YAML file is a Nunjucks template, the pipeline syntax of `{{}}` will conflict with
# Nunjucks style. Surround pipeline YAML code that uses `{{}}` within `raw` and `endraw` tags
# to allow it to pass through Nunjucks processing.

parameters:
- name: install_pip_modules
displayName: Install PIP Modules
Expand All @@ -24,7 +34,7 @@ steps:
- ${{ if eq(parameters.install_python, true) }}:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.12"
versionSpec: 3.12
architecture: x64

- ${{ if eq(parameters.install_pip_modules, true) }}:
Expand Down

0 comments on commit 4bebc96

Please sign in to comment.