From: Frantisek Sumsal Date: Fri, 26 Feb 2021 14:32:12 +0000 (+0100) Subject: ci: build an upstream version of systemd-nspawn X-Git-Tag: v10~64^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F659%2Fhead;p=thirdparty%2Fmkosi.git ci: build an upstream version of systemd-nspawn Ubuntu's systemd-nspawn doesn't support faccessat2() syscall, which is required, since current Arch's glibc implements faccessat() via faccessat2(). --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7ff2c0cf..efad5d6ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,6 +65,20 @@ jobs: NetworkVeth=yes EOF + # Ubuntu's systemd-nspawn doesn't support faccessat2() syscall, which is + # required, since current Arch's glibc implements faccessat() via faccessat2(). + - name: Update systemd-nspawn + if: ${{ matrix.distro == 'arch' }} + run: | + echo "deb-src http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list + sudo apt update + sudo apt build-dep systemd + git clone https://github.com/systemd/systemd --depth=1 && cd systemd + meson build + ninja -C build + sudo ln -svf $PWD/build/systemd-nspawn `which systemd-nspawn` + systemd-nspawn --version + - name: Build ${{ matrix.distro }}/${{ matrix.format }} run: | sudo python3 -m mkosi build