ci: install libsystemd-dev on ubuntu

This commit is contained in:
Bluemangoo
2025-01-25 19:48:26 +08:00
parent aae5099cf2
commit b7f8e7c911
2 changed files with 16 additions and 0 deletions
+12
View File
@@ -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:
+4
View File
@@ -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