From 6c6c40bfa8bfac1336ec4c4c2f0e6562130f708a Mon Sep 17 00:00:00 2001 From: Simone Rodigari Date: Tue, 3 Dec 2024 07:43:23 +0000 Subject: [PATCH] set C_INCLUDE_PATH at job level --- .github/workflows/test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index afed764..9c90ef9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,9 @@ jobs: build: runs-on: ubuntu-latest + env: + C_INCLUDE_PATH: /usr/include/x86_64-linux-gnu + steps: - name: Checkout repository uses: actions/checkout@v2 @@ -14,11 +17,7 @@ jobs: run: | sudo apt-get update sudo apt-get install clang llvm libbpf-dev make linux-headers-$(uname -r) -y - - - name: Export Linux headers for libbpf - env: - C_INCLUDE_PATH: /usr/include/x86_64-linux-gnu - run: find /usr/include -name 'types.h' + find /usr/include -name 'types.h' - name: Test compile XDP program run: make compile