From 81998ac0fccd73ca9486556f7ac24f49dd71291c Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 15 Feb 2024 15:02:29 +0100 Subject: [PATCH] chore: no need to install kernel headers if drivers tests are not going to be ran. Signed-off-by: Federico Di Pierro --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index af2cad4..c84baca 100644 --- a/action.yml +++ b/action.yml @@ -67,14 +67,14 @@ runs: ${{ inputs.sudo }} falcoctl artifact install cloudtrail-rules - name: Install dependencies for falco-driver-loader tests - if: ${{ inputs.arch == 'x86_64' }} + if: ${{ inputs.arch == 'x86_64' && inputs.test-drivers == 'true' }} shell: bash run: | ${{ inputs.sudo }} apt update -y ${{ inputs.sudo }} apt install -y --no-install-recommends build-essential clang make llvm gcc dkms linux-headers-$(uname -r) - name: Install dependencies for falco-driver-loader tests - if: ${{ inputs.arch == 'aarch64' }} + if: ${{ inputs.arch == 'aarch64' && inputs.test-drivers == 'true' }} uses: self-actuated/get-kernel-sources@master - name: Run tests