Skip to content

Commit 81998ac

Browse files
FedeDPpoiana
authored andcommitted
chore: no need to install kernel headers if drivers tests are not going to be ran.
Signed-off-by: Federico Di Pierro <[email protected]>
1 parent 29d78c1 commit 81998ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ runs:
6767
${{ inputs.sudo }} falcoctl artifact install cloudtrail-rules
6868
6969
- name: Install dependencies for falco-driver-loader tests
70-
if: ${{ inputs.arch == 'x86_64' }}
70+
if: ${{ inputs.arch == 'x86_64' && inputs.test-drivers == 'true' }}
7171
shell: bash
7272
run: |
7373
${{ inputs.sudo }} apt update -y
7474
${{ inputs.sudo }} apt install -y --no-install-recommends build-essential clang make llvm gcc dkms linux-headers-$(uname -r)
7575
7676
- name: Install dependencies for falco-driver-loader tests
77-
if: ${{ inputs.arch == 'aarch64' }}
77+
if: ${{ inputs.arch == 'aarch64' && inputs.test-drivers == 'true' }}
7878
uses: self-actuated/get-kernel-sources@master
7979

8080
- name: Run tests

0 commit comments

Comments
 (0)