]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: CI: Use Fedora 35 container (Linux only)
authorOliver Steffen <osteffen@redhat.com>
Mon, 16 Jan 2023 17:40:37 +0000 (18:40 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 17 Jan 2023 19:06:32 +0000 (19:06 +0000)
Run the Linux jobs of the OvmfPkg platform CI inside a container,
in the same way the general CI does now. Make use of the default image
specified in the defaults.yml template.

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>
Acked-by: Jiewen Yao <jiewen.yao@intel.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>
OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml

index 6dd90711ac7060c3825162a02b70541949dee1ed..85be431ca5e77b422ea58b070528261e9f29716b 100644 (file)
@@ -180,6 +180,8 @@ jobs:
     pool:\r
       vmImage: $(vm_image)\r
 \r
+    container: ${{ variables.default_linux_image }}\r
+\r
     steps:\r
     - template: ../../../.azurepipelines/templates/platform-build-run-steps.yml\r
       parameters:\r
@@ -190,8 +192,4 @@ jobs:
         build_file: $(Build.File)\r
         build_flags: $(Build.Flags)\r
         run_flags: $(Run.Flags)\r
-        usePythonVersion: ${{ variables.default_python_version }}\r
-        extra_install_step:\r
-        - bash: sudo apt-get install qemu\r
-          displayName: Install qemu\r
-          condition: and(gt(variables.pkg_count, 0), succeeded())\r
+        usePythonVersion: '' # use Python from the container image\r