]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
ci: build current systemd-analyze for unit tests 1504/head
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 25 Apr 2023 08:04:49 +0000 (10:04 +0200)
committerJoerg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 25 Apr 2023 11:04:18 +0000 (13:04 +0200)
.github/workflows/ci.yml

index 3e0560207f86242fa2a025f58048781a5b9eb1f6..39ee427835098520bbd258270cec1eb9dbd6d829 100644 (file)
@@ -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