Skip to content

Commit

Permalink
chore: no need to install kernel headers if drivers tests are not goi…
Browse files Browse the repository at this point in the history
…ng to be ran.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Feb 15, 2024
1 parent 29d78c1 commit 81998ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81998ac

Please sign in to comment.