Skip to content

Commit

Permalink
ci: Test with all meaningful kernels thanks to landlock-test-tools
Browse files Browse the repository at this point in the history
Test all Landlock ABI versions:
- Linux 5.10: no Landlock support
- Linux 5.15: ABI v1
- Linux 6.1: ABI v2

See https://github.com/landlock-lsm/landlock-test-tools

Signed-off-by: Mickaël Salaün <mic@digikod.net>
  • Loading branch information
l0kod committed Aug 30, 2023
1 parent 9ada920 commit bbac162
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,20 @@ jobs:

- name: Run tests
run: rustup run stable cargo test --verbose

- name: Clone Landlock test tools
uses: actions/checkout@v3
with:
repository: landlock-lsm/landlock-test-tools
path: landlock-test-tools
fetch-depth: 0
ref: ab616e087cffa4b6716ff026e589d0317e19aaa4 # v1.0.0

- name: Run tests against Linux 5.10
run: ./landlock-test-tools/test-rust.sh linux-5.10 0

- name: Run tests against Linux 5.15
run: ./landlock-test-tools/test-rust.sh linux-5.15 2

- name: Run tests against Linux 6.1
run: ./landlock-test-tools/test-rust.sh linux-6.1 2

0 comments on commit bbac162

Please sign in to comment.