From b7f8e7c911c3fc34eb68a39e96176f56a93e4636 Mon Sep 17 00:00:00 2001 From: Bluemangoo Date: Sat, 25 Jan 2025 12:17:40 +0800 Subject: [PATCH] ci: install `libsystemd-dev` on ubuntu --- .github/workflows/ci.yml | 12 ++++++++++++ .github/workflows/code-quality.yml | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c2c0f6..18b98dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + - if: ${{ contains(matrix.os, 'ubuntu') }} + run: | + sudo apt-get update -y + sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev - run: cargo check test: @@ -26,6 +30,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + - if: ${{ contains(matrix.os, 'ubuntu') }} + run: | + sudo apt-get update -y + sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev - run: cargo test --all fmt: @@ -71,6 +79,10 @@ jobs: uses: dtolnay/rust-toolchain@nightly with: components: llvm-tools-preview + - if: ${{ contains(matrix.job.os, 'ubuntu') }} + run: | + sudo apt-get update -y + sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev - name: Test run: cargo test --no-fail-fast env: diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 2f35527..485103d 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -81,6 +81,10 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Run sccache-cache uses: mozilla-actions/sccache-action@v0.0.7 + - if: ${{ contains(matrix.job.os, 'ubuntu') }} + run: | + sudo apt-get update -y + sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev - name: Initialize workflow variables id: vars shell: bash