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)
[Build]
UseSubvolumes=yes
- ToolsTreeDistribution=fedora
- ToolsTreeRelease=rawhide
+ ToolsTreeDistribution=${{ matrix.distro }}
+ ToolsTreeRelease=${{ matrix.release }}
WorkspaceDirectory=$TMPDIR
PackageCacheDirectory=$TMPDIR/cache
- 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 \
--print-errorlogs \
--no-stdsplit \
--num-processes "$(($(nproc) - 1))" \
- --max-lines 300
+ "${MAX_LINES[@]}"
- name: Archive failed test journals
uses: actions/upload-artifact@v4