Skip to content

Commit 904ac05

Browse files
committed
CI apt-get update before installing dependencies
- Replace command `apt` with `apt-get`.
1 parent 0e20239 commit 904ac05

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: actions/checkout@v2
4949
- name: Install dependencies
5050
if: matrix.os == 'ubuntu-latest'
51-
run: sudo apt install libsystemd-dev
51+
run: sudo bash ./.github/workflows/install-deps.sh
5252
- name: Restore cargo caches
5353
uses: Swatinem/rust-cache@v1
5454
- name: Run tests
@@ -64,7 +64,7 @@ jobs:
6464
uses: actions/checkout@v2
6565
- name: Install dependencies
6666
if: matrix.os == 'ubuntu-latest'
67-
run: sudo apt install libsystemd-dev
67+
run: sudo bash ./.github/workflows/install-deps.sh
6868
- name: Install nightly
6969
run: |
7070
rustup toolchain install nightly
@@ -82,7 +82,7 @@ jobs:
8282
- name: Checkout repository
8383
uses: actions/checkout@v2
8484
- name: Install dependencies
85-
run: sudo apt install libsystemd-dev
85+
run: sudo bash ./.github/workflows/install-deps.sh
8686
- name: Install nightly
8787
run: rustup toolchain install nightly
8888
- name: Restore cargo caches
@@ -104,7 +104,7 @@ jobs:
104104
uses: actions/checkout@v2
105105
- name: Install dependencies (Linux)
106106
if: matrix.os == 'ubuntu-latest'
107-
run: sudo apt install libsystemd-dev
107+
run: sudo bash ./.github/workflows/install-deps.sh
108108
- name: Install Rust ${{ env.rust_minver }}
109109
run: rustup toolchain install ${{ env.rust_minver }}
110110
- name: Restore cargo caches

.github/workflows/install-deps.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
apt-get update
2+
apt-get install libsystemd-dev

0 commit comments

Comments
 (0)