From: Joerg Behrmann Date: Tue, 25 Apr 2023 08:04:49 +0000 (+0200) Subject: ci: build current systemd-analyze for unit tests X-Git-Tag: v15~200^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1504%2Fhead;p=thirdparty%2Fmkosi.git ci: build current systemd-analyze for unit tests --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e0560207..39ee42783 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,23 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Update systemd-analyze + shell: bash + working-directory: ${{ github.action_path }} + 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-get update + sudo apt-get build-dep systemd + sudo apt-get install libfdisk-dev + + git clone https://github.com/systemd/systemd --depth=1 + meson systemd/build systemd + + ninja -C systemd/build systemd-analyze + + sudo ln -svf $PWD/systemd/build/systemd-analyze /usr/bin/systemd-analyze + systemd-analyze --version + - name: Install run: | python3 -m pip install pytest mypy types-cryptography isort pyflakes