Skip to content

Commit 195ee90

Browse files
committed
ci: install libsystemd-dev on ubuntu
1 parent 67a81c4 commit 195ee90

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: dtolnay/rust-toolchain@stable
18+
- if: ${{ contains(matrix.os, 'ubuntu') }}
19+
run: |
20+
sudo apt-get update -y
21+
sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev
1822
- run: cargo check
1923

2024
test:
@@ -26,6 +30,10 @@ jobs:
2630
steps:
2731
- uses: actions/checkout@v4
2832
- uses: dtolnay/rust-toolchain@stable
33+
- if: ${{ contains(matrix.os, 'ubuntu') }}
34+
run: |
35+
sudo apt-get update -y
36+
sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev
2937
- run: cargo test --all
3038

3139
fmt:
@@ -71,6 +79,10 @@ jobs:
7179
uses: dtolnay/rust-toolchain@nightly
7280
with:
7381
components: llvm-tools-preview
82+
- if: ${{ contains(matrix.job.os, 'ubuntu') }}
83+
run: |
84+
sudo apt-get update -y
85+
sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev
7486
- name: Test
7587
run: cargo test --no-fail-fast
7688
env:

.github/workflows/code-quality.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ jobs:
8181
- uses: Swatinem/rust-cache@v2
8282
- name: Run sccache-cache
8383
uses: mozilla-actions/[email protected]
84+
- if: ${{ contains(matrix.job.os, 'ubuntu') }}
85+
run: |
86+
sudo apt-get update -y
87+
sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev
8488
- name: Initialize workflow variables
8589
id: vars
8690
shell: bash

0 commit comments

Comments
 (0)