]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Update mkosi action to latest commit
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 10 Jan 2023 11:04:10 +0000 (12:04 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 15 Jan 2023 19:44:53 +0000 (20:44 +0100)
Let's make sure we're testing with the latest changes in mkosi. This
includes both the switch to systemd-repart and ukify, making sure we
get extra testing coverage for those components.

This also drops options from the centos config that have been removed
in the newer mkosi.

For some reason idmapping runs into some issues so we disable it for
now.

.github/workflows/mkosi.yml
mkosi.conf.d/centos/10-mkosi.centos [moved from mkosi.conf.d/centos_epel/10-mkosi.centos_epel with 97% similarity]

index 0e3cfae7b8f7c23a0f2f774ba12baee40c882e60..357b4f420594736abe97bd009f440583e072433f 100644 (file)
@@ -72,24 +72,14 @@ jobs:
             release: rawhide
           - distro: opensuse
             release: tumbleweed
-          - distro: centos_epel
+          - distro: centos
             release: 9-stream
-          - distro: centos_epel
+          - distro: centos
             release: 8-stream
 
     steps:
     - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
-    - uses: systemd/mkosi@c9772ec920f1cd03181ba14e6fe2c3d35ccb4f92
-
-    # FIXME: temporary workaround for a file conflict between systemd (C9S) and
-    # systemd-boot (EPEL9). Drop this once systemd in C9S is updated to v252
-    # (should be done by the end of 2022).
-    - name: Fix C9S/EPEL9
-      if: ${{ matrix.release == '9-stream' }}
-      run: sudo sed -i '/add_packages/s/systemd-boot/systemd/g' /usr/local/lib/python3.10/dist-packages/mkosi/__init__.py
-
-    - name: Install
-      run: sudo apt-get update && sudo apt-get install --no-install-recommends python3-pexpect python3-jinja2
+    - uses: systemd/mkosi@ab2aff830096e681da1950a7d29f277caa89516c
 
     - name: Configure
       run: |
@@ -106,7 +96,7 @@ jobs:
         EOF
 
     - name: Build ${{ matrix.distro }}
-      run: sudo mkosi build
+      run: sudo mkosi --idmap no
 
     - name: Show ${{ matrix.distro }} image summary
       run: sudo mkosi summary
similarity index 97%
rename from mkosi.conf.d/centos_epel/10-mkosi.centos_epel
rename to mkosi.conf.d/centos/10-mkosi.centos
index 768403f7cfb145d45a45a00a821245380141376a..a950cbd4d2aa4f486ad92456e4596e039c78f037 100644 (file)
@@ -4,11 +4,8 @@
 # Symlink this file to mkosi.default in the project root directory and invoke "mkosi" to build an OS image.
 
 [Distribution]
-Distribution=centos_epel
-
-[Output]
-Format=gpt_xfs
-HostonlyInitrd=no
+Distribution=centos
+Repositories=epel
 
 [Content]
 Packages=