]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CI: Use Fedora 35 container (Linux only)
authorArd Biesheuvel <ardb@kernel.org>
Tue, 17 Jan 2023 18:09:09 +0000 (19:09 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 17 Jan 2023 19:06:32 +0000 (19:06 +0000)
Run all Linux based jobs in a container, using a custom Fedora 35 image
(gcc 11).  The image URL specified in the defaults.yml template, so that
all CI jobs can use it. The image is hosted on ghcr.io and the
Dockerfiles are here: https://github.com/tianocore/containers The
version numbers of gcc, iasl, and nasm are pinned to avoid unintended
upgrades during image rebuild.

Do not run apt-get in CI jobs to install qemu and gcc dependencies.
Assume the container image provides these.

Use Python from the container image, do not download at runtime.

Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chris Fernald <chfernal@microsoft.com>
.azurepipelines/Ubuntu-GCC5.yml
.azurepipelines/templates/basetools-build-steps.yml
.azurepipelines/templates/defaults.yml

index 4f9dcf017093054aa8c12c41d1f83eede11c914f..c3f29625a5d6545a4825253b639916e86cddbda4 100644 (file)
@@ -21,5 +21,6 @@ jobs:
   parameters:\r
     tool_chain_tag: 'GCC5'\r
     vm_image: 'ubuntu-latest'\r
+    container: ${{ variables.default_linux_image }}\r
     arch_list: "IA32,X64,ARM,AARCH64,RISCV64,LOONGARCH64"\r
-    usePythonVersion: ${{ variables.default_python_version }}\r
+    usePythonVersion: ''  # use Python from the container image\r
index d8c108c6e212437f1bc2632ab1979c6e4b5b3f3d..a72758bc3395700b8c64e61c034f4ab0518df021 100644 (file)
@@ -10,15 +10,6 @@ parameters:
   tool_chain_tag: ''\r
 \r
 steps:\r
-- ${{ if contains(parameters.tool_chain_tag, 'GCC') }}:\r
-  - bash: sudo apt-get update\r
-    displayName: Update apt\r
-    condition: and(gt(variables.pkg_count, 0), succeeded())\r
-\r
-  - bash: sudo apt-get install gcc g++ make uuid-dev\r
-    displayName: Install required tools\r
-    condition: and(gt(variables.pkg_count, 0), succeeded())\r
-\r
 - task: CmdLine@1\r
   displayName: Build Base Tools from source\r
   inputs:\r
index b4909448bdea9b1efa334cff05fb46a436ce3ea7..74d6b417839d4b0ff014691deed7b82f0364463f 100644 (file)
@@ -9,3 +9,4 @@
 \r
 variables:\r
   default_python_version: ">=3.10.6"\r
+  default_linux_image: "ghcr.io/tianocore/containers/fedora-35-test:47addc9"\r