From: "Alex Bennée" <alex.bennee@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
"BALATON Zoltan" <balaton@eik.bme.hu>,
"Thomas Huth" <thuth@redhat.com>,
qemu-arm@nongnu.org, "Gustavo Romero" <gustavo.romero@linaro.org>,
"Peter Maydell" <peter.maydell@linaro.org>,
qemu-s390x@nongnu.org, "Alex Bennée" <alex.bennee@linaro.org>
Subject: [PATCH 3/7] scripts/ci: move build-environment.yaml up a level
Date: Thu, 23 Oct 2025 13:09:49 +0100 [thread overview]
Message-ID: <20251023120953.2905297-4-alex.bennee@linaro.org> (raw)
In-Reply-To: <20251023120953.2905297-1-alex.bennee@linaro.org>
We can share the setup of the build environment with multiple
operating systems as we just need to check the YAML for each env is
present in the directory structure.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
.../ci/setup/{ubuntu => }/build-environment.yml | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
rename scripts/ci/setup/{ubuntu => }/build-environment.yml (81%)
diff --git a/scripts/ci/setup/ubuntu/build-environment.yml b/scripts/ci/setup/build-environment.yml
similarity index 81%
rename from scripts/ci/setup/ubuntu/build-environment.yml
rename to scripts/ci/setup/build-environment.yml
index 1c517c74f74..66bde188755 100644
--- a/scripts/ci/setup/ubuntu/build-environment.yml
+++ b/scripts/ci/setup/build-environment.yml
@@ -27,18 +27,24 @@
- ansible_facts['distribution'] == 'Ubuntu'
# the package lists are updated by "make lcitool-refresh"
- - name: Include package lists based on OS and architecture
- include_vars:
- file: "ubuntu-2404-{{ ansible_facts['architecture'] }}.yaml"
+ - name: Define package list file path
+ set_fact:
+ package_file: "ubuntu/ubuntu-2404-{{ ansible_facts['architecture'] }}.yaml"
when:
- ansible_facts['distribution'] == 'Ubuntu'
- ansible_facts['distribution_version'] == '24.04'
+ - name: Include package lists based on OS and architecture
+ include_vars:
+ file: "{{ package_file }}"
+ when:
+ - package_file is exists
+
- name: Install packages for QEMU on Ubuntu 24.04
package:
name: "{{ packages }}"
when:
- - ansible_facts['distribution'] == 'Ubuntu'
- - ansible_facts['distribution_version'] == '24.04'
+ - package_file is exists
+ - packages is defined
--
2.47.3
next prev parent reply other threads:[~2025-10-23 12:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-23 12:09 [PATCH 0/7] testing/next - more custom runner tweaks (ansible, ppc64le) Alex Bennée
2025-10-23 12:09 ` [PATCH 1/7] ci: clean-up remaining bits of armhf builds Alex Bennée
2025-10-23 12:09 ` [PATCH 2/7] scripts/ci/setup: regenerate yaml Alex Bennée
2025-10-23 12:09 ` Alex Bennée [this message]
2025-10-23 12:09 ` [PATCH 4/7] scripts/ci: allow both Ubuntu or Debian to run upgrade Alex Bennée
2025-10-23 12:09 ` [PATCH 5/7] tests/lcitool: generate a yaml file for the ppc64le runner Alex Bennée
2025-10-23 12:09 ` [PATCH 6/7] scripts/ci: modify gitlab runner deb setup Alex Bennée
2025-10-23 12:09 ` [PATCH 7/7] gitlab: add initial ppc64le custom-runner test Alex Bennée
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251023120953.2905297-4-alex.bennee@linaro.org \
--to=alex.bennee@linaro.org \
--cc=balaton@eik.bme.hu \
--cc=gustavo.romero@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).