mkosi: Use a bigger variety of tools tree distributions

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.
This commit is contained in:
Daan De Meyer
2025-01-21 10:57:29 +01:00
parent 685666afd8
commit 7645139bd7
+9 -3
View 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