From cdf2d80f85ff4af5ac5cbffc79d87a0e230a8e5a Mon Sep 17 00:00:00 2001 From: Yiwei Lin Date: Tue, 15 Oct 2024 21:24:50 +0800 Subject: [PATCH] Fix cargo-test steps --- .github/workflows/cargo-test.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cargo-test.yml b/.github/workflows/cargo-test.yml index 7b0d40d..d0f7b55 100644 --- a/.github/workflows/cargo-test.yml +++ b/.github/workflows/cargo-test.yml @@ -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 @@ -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