From feb6cc0db437bcc57a29a32b8dce863a91b895fe Mon Sep 17 00:00:00 2001 From: LeChatP Date: Mon, 10 Jun 2024 13:10:37 +0200 Subject: [PATCH] Use absolute path instead of reinstalling rust as root --- .github/workflows/tests.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2856504..275a0a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,9 +27,6 @@ jobs: - name: Install Dependencies run: ./dependencies.sh -yd - - name: Install Dependencies as root (for tests as admin) - run: sudo ./dependencies.sh -yd - - name: Install file configuration run: sudo bash ./configure.sh -yd @@ -45,7 +42,7 @@ jobs: flags: unittests - name: run tests with coverage as Admin - run: sudo -E cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --bin chsr --bin sr --exclude-files capable* capable-ebpf/src/vmlinux.rs capable/src/main.rs build.rs --out Xml + run: sudo -E /github/home/.cargo/bin/cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --bin chsr --bin sr --exclude-files capable* capable-ebpf/src/vmlinux.rs capable/src/main.rs build.rs --out Xml - name: Upload coverage reports to Codecov as Admin uses: codecov/codecov-action@v3