Skip to content

Commit 7a6ae57

Browse files
hswong3ikeszybz
authored andcommitted
.github/workflows/ci.yml: Install linux-modules-extra
GitHub Actions is now broken due to missing zram kernel module, therefore modprobe failed. This PR install `linux-modules-extra-$(uname -r)` so auto detect running kernel version and install corresponding required kernel modules correctly. Signed-off-by: Wong Hoi Sing Edison <[email protected]>
1 parent b416a1b commit 7a6ae57

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v2
26+
- name: Install linux-modules-extra-$(uname -r)
27+
run: |
28+
sudo apt update
29+
sudo apt install -y linux-modules-extra-$(uname -r)
30+
- name: Insert zram module
31+
run: sudo modprobe -v zram
2632
- name: Install Rust
2733
uses: actions-rs/toolchain@v1
2834
with:
@@ -31,8 +37,6 @@ jobs:
3137
profile: minimal
3238
- name: Build
3339
run: make build CARGOFLAGS="--verbose"
34-
- name: Insert zram module
35-
run: sudo modprobe -v zram
3640
- name: Run tests
3741
run: make check CARGOFLAGS="--verbose"
3842

0 commit comments

Comments
 (0)