From fa61b6278623637aa35f67ccffcc97ea6f6defb7 Mon Sep 17 00:00:00 2001 From: Joerg Behrmann Date: Tue, 25 Apr 2023 10:04:49 +0200 Subject: [PATCH] ci: build current systemd-analyze for unit tests --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 -- 2.47.2