Skip to content

Commit

Permalink
Install gpio-sim to github runner
Browse files Browse the repository at this point in the history
Now that there's a test that uses gpio-sim, we need the kernel module in
the runner environment for it to work.
  • Loading branch information
ThirteenFish committed Jul 8, 2024
1 parent bd6b975 commit fb05029
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install gpio-sim
run: |
sudo apt-get update
sudo apt-get install linux-modules-extra-$(uname -r)
sudo modprobe gpio-sim
- name: Build
run: cargo build --verbose
- name: Run fmt
run: cargo fmt
- name: Run Clippy
run: cargo clippy --all-targets --all-features
- name: Run tests
run: cargo test --verbose
run: sudo -E cargo test --verbose

0 comments on commit fb05029

Please sign in to comment.