diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-12-06 15:20:15 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-12-08 12:55:43 +0100 |
commit | 71d19c5b56472cddc8b9a8315d5172ea85e9719d (patch) | |
tree | 4bbe5639665572713e70d32d58236e62558a5225 /.github/workflows | |
parent | test: Set kernel loglevel to INFO when running tests unattended (diff) | |
download | systemd-71d19c5b56472cddc8b9a8315d5172ea85e9719d.tar.xz systemd-71d19c5b56472cddc8b9a8315d5172ea85e9719d.zip |
mkosi: Use mkosi sandbox in CI with Fedora tools tree
This gives us a newer meson which will allow us to use the new
--max-lines= feature I added in meson 1.5.0.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/mkosi.yml | 53 |
1 files changed, 18 insertions, 35 deletions
diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index 7aea3769f3..ccd166825f 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -152,6 +152,8 @@ jobs: [Build] UseSubvolumes=yes + ToolsTree=default + ToolsTreeDistribution=fedora WorkspaceDirectory=$TMPDIR PackageCacheDirectory=$TMPDIR/cache @@ -178,47 +180,28 @@ jobs: - name: Show image summary run: mkosi summary - - name: Install dependencies - run: | - mkosi dependencies | - xargs -d '\n' sudo apt-get install \ - gperf \ - libblkid-dev \ - libcap-dev \ - libcryptsetup-dev \ - libcurl4-openssl-dev \ - libfdisk-dev \ - libmicrohttpd-dev \ - libmount-dev \ - libtss2-dev \ - meson + - name: Build tools tree + run: mkosi -f sandbox true - name: Configure meson - run: | - OPTIONS=( - --buildtype=debugoptimized - -Dintegration-tests=true - -Dremote=enabled - -Dopenssl=enabled - -Dblkid=enabled - -Dtpm2=enabled - -Dlibcryptsetup=enabled - -Dlibcurl=enabled - -Drepart=enabled - -Dfirstboot=true - -Dsysusers=true - -Dtmpfiles=true - -Dhwdb=true - -Dvmspawn=enabled - ) - - meson setup build "${OPTIONS[@]}" + run: mkosi sandbox meson setup --buildtype=debugoptimized -Dintegration-tests=true build - name: Build image - run: sudo meson compile -C build mkosi + run: sudo --preserve-env mkosi sandbox meson compile -C build mkosi - name: Run integration tests - run: sudo --preserve-env env TEST_PREFER_QEMU=${{ matrix.qemu }} meson test -C build --no-rebuild --suite integration-tests --print-errorlogs --no-stdsplit --num-processes "$(($(nproc) - 1))" + run: | + sudo --preserve-env \ + mkosi sandbox \ + env \ + TEST_PREFER_QEMU=${{ matrix.qemu }} \ + meson test \ + -C build \ + --no-rebuild \ + --suite integration-tests \ + --print-errorlogs \ + --no-stdsplit \ + --num-processes "$(($(nproc) - 1))" - name: Archive failed test journals uses: actions/upload-artifact@v4 |