]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use a bigger variety of tools tree distributions
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 17 Jan 2025 12:28:47 +0000 (13:28 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 27 Jan 2025 18:04:50 +0000 (19:04 +0100)
Let's add more coverage for building with tools trees by building
each image with a tools tree of the same distribution and release.

Because not every tools tree distribution has a newer meson yet, we
only use --max-lines= when meson actually knows the option.

(cherry picked from commit 7645139bd7c7ccd10849c43644286e4877719a45)

.github/workflows/mkosi.yml

index e91f41db5340d4e86009314eb905ee304dba5454..3a90bd66802867adba0864de2a4404531b0b4ce2 100644 (file)
@@ -159,8 +159,8 @@ jobs:
 
           [Build]
           UseSubvolumes=yes
-          ToolsTreeDistribution=fedora
-          ToolsTreeRelease=rawhide
+          ToolsTreeDistribution=${{ matrix.distro }}
+          ToolsTreeRelease=${{ matrix.release }}
 
           WorkspaceDirectory=$TMPDIR
           PackageCacheDirectory=$TMPDIR/cache
@@ -198,6 +198,12 @@ jobs:
 
       - name: Run integration tests
         run: |
+          if [[ "$(mkosi sandbox meson test --help)" == *"--max-lines"* ]]; then
+              MAX_LINES=(--max-lines 300)
+          else
+              MAX_LINES=()
+          fi
+
           sudo --preserve-env \
             mkosi sandbox \
             env \
@@ -210,7 +216,7 @@ jobs:
             --print-errorlogs \
             --no-stdsplit \
             --num-processes "$(($(nproc) - 1))" \
-            --max-lines 300
+            "${MAX_LINES[@]}"
 
       - name: Archive failed test journals
         uses: actions/upload-artifact@v4