From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.56248.1669926505567774941 for ; Thu, 01 Dec 2022 12:28:25 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PXJLtI9x; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: osteffen@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669926504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=feyQ3quFMUvXbX7jl4Tg+tbFKQQ54ePiYEDswX1tG+A=; b=PXJLtI9xhbHggv/8huqgaUBnOtWv4m10rR2AGDhY1ynJhWosfdXfD6PvaOcW0iBw/Op1rd 7KAscEJIVJZEcmQZaxh0LsXtbLmO2SOyTuD2SSRKznkbaSWnuYHO+xtotbM/wuPfrBep34 hN+wSeL3gdjbt3aYkV5KVsKDVZ36SA8= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-411-Lx1MtQpONWaYbqPWxxsKtA-1; Thu, 01 Dec 2022 15:28:23 -0500 X-MC-Unique: Lx1MtQpONWaYbqPWxxsKtA-1 Received: by mail-lf1-f69.google.com with SMTP id t14-20020a056512068e00b004b4f4d584c0so1225941lfe.23 for ; Thu, 01 Dec 2022 12:28:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=feyQ3quFMUvXbX7jl4Tg+tbFKQQ54ePiYEDswX1tG+A=; b=HYuRX/6yXcjT6d6FbBQL7+It1+xPtdm4XVPKKKqHLgYo6EFP22u0WPv8TU+YTZDLDF qRwfG+Dg4FTrWxD9WiGEBdo7WeS5hXsTzQKtkozBuFzQ1mPqFX3CYUW2aC8e1NVB5G3u AdMXtSXi69SWrLNtgOn8iGvLjmFQnAwC+MsTv/3IfDiiC8AnwDQ8ZLelvgfcgdwOJvzb BLBLLQpvY8aYa7ezH9YVUlIk3NKgdkqX4tST9mypP+ncctWaaEB7IDZSM3Zt9fHIZNSX +Qg6HoUX7TMFoD4JleFjGjEzSBuXueOw4J17RPUY3S0dUvy3MjtwbFnsIv0QQFa8e33N WL/A== X-Gm-Message-State: ANoB5pmKuJeevur4uhxDybMW3jqWctvIFpnoJuaLoDc2LQ9J+MhQkda6 88+d2/Sae2zK5+S6pJudvOUdl6oDbKHdFE8S36ShHjjOHZiSeM1hxp7H8wyAh3iQYAvEDCtdPSd wMCxR7GY0teVEYzu0eLeCbd+sWlJ/pQ== X-Received: by 2002:ac2:4c42:0:b0:4a5:bf09:a700 with SMTP id o2-20020ac24c42000000b004a5bf09a700mr16011745lfk.656.1669926501996; Thu, 01 Dec 2022 12:28:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6GsvR6msUkL66LP3D5UQWptiMMzUei9+rg8szCesBEExm1c7Khs89DuOzcP9YEYvS8Fgps80a2jvM3kx/WlEQ= X-Received: by 2002:ac2:4c42:0:b0:4a5:bf09:a700 with SMTP id o2-20020ac24c42000000b004a5bf09a700mr16011739lfk.656.1669926501837; Thu, 01 Dec 2022 12:28:21 -0800 (PST) Received: from 567203818698 named unknown by gmailapi.google.com with HTTPREST; Thu, 1 Dec 2022 12:28:21 -0800 From: "Oliver Steffen" X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201202810.109662-1-osteffen@redhat.com> References: <20221201202810.109662-1-osteffen@redhat.com> MIME-Version: 1.0 Date: Thu, 1 Dec 2022 12:28:21 -0800 Message-ID: Subject: [PATCH v10 07/17] CI: Use Fedora 35 container (Linux only) To: devel@edk2.groups.io Cc: Andrew Fish , Ard Biesheuvel , Bob Feng , Daniel Schaefer , Gerd Hoffmann , Jiewen Yao , Jordan Justen , Leif Lindholm , Liming Gao , Michael D Kinney , Michael Kubacki , Ray Ni , Sami Mujawar , Sean Brogan , Sunil V L , Yuwei Chen , Zhiguang Liu , Pawel Polawski , Chris Fernald , Oliver Steffen X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Run all Linux based jobs in a container, using a custom Fedora 35 image (gcc 11). 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 --- .azurepipelines/Ubuntu-GCC5.yml | 6 ++---- .azurepipelines/templates/basetools-build-steps.yml | 9 --------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.azurepipelines/Ubuntu-GCC5.yml b/.azurepipelines/Ubuntu-GCC5.yml index 4ed6cb601b8e..ca23b684e222 100644 --- a/.azurepipelines/Ubuntu-GCC5.yml +++ b/.azurepipelines/Ubuntu-GCC5.yml @@ -13,14 +13,12 @@ pr: - master - stable/* -variables: - - template: templates/defaults.yml - jobs: - template: templates/pr-gate-build-job.yml parameters: tool_chain_tag: 'GCC5' vm_image: 'ubuntu-latest' + container: 'ghcr.io/tianocore/containers/fedora-35-build:2113a0e' arch_list: "IA32,X64,ARM,AARCH64,RISCV64,LOONGARCH64" - usePythonVersion: ${{ variables.default_python_version }} + usePythonVersion: '' # use Python from the container image diff --git a/.azurepipelines/templates/basetools-build-steps.yml b/.azurepipelines/templates/basetools-build-steps.yml index d8c108c6e212..a72758bc3395 100644 --- a/.azurepipelines/templates/basetools-build-steps.yml +++ b/.azurepipelines/templates/basetools-build-steps.yml @@ -10,15 +10,6 @@ parameters: tool_chain_tag: '' steps: -- ${{ if contains(parameters.tool_chain_tag, 'GCC') }}: - - bash: sudo apt-get update - displayName: Update apt - condition: and(gt(variables.pkg_count, 0), succeeded()) - - - bash: sudo apt-get install gcc g++ make uuid-dev - displayName: Install required tools - condition: and(gt(variables.pkg_count, 0), succeeded()) - - task: CmdLine@1 displayName: Build Base Tools from source inputs: -- 2.38.1