Skip to content

Commit

Permalink
Fix cargo-test steps
Browse files Browse the repository at this point in the history
  • Loading branch information
RinHizakura committed Oct 15, 2024
1 parent 84b7143 commit cdf2d80
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/cargo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Get-submodule
run: git submodule update --init --recursive

- name: Install-dependencies
run: |
sudo apt-get update
Expand All @@ -30,22 +32,14 @@ jobs:
- name: Create-vmlinux-h
run: bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h

test-normal:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
- name: Test-normal
run: |
cargo clean
cargo build --no-default-features kexpr
sudo cargo test --target-dir test_build
test-kexpr:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
- name: Test-kexpr
run: |
cargo clean
cargo build
sudo cargo test --target-dir test_build

0 comments on commit cdf2d80

Please sign in to comment.