From dcde0b85e45487be96b54062aff857ed11f292fb Mon Sep 17 00:00:00 2001 From: Ihor Solodrai Date: Wed, 5 Feb 2025 11:59:34 -0800 Subject: [PATCH] GCC BPF: fix kernel source checkout at kernel-patches/bpf (#339) Signed-off-by: Ihor Solodrai --- .github/workflows/gcc-bpf.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/gcc-bpf.yml b/.github/workflows/gcc-bpf.yml index da01178..fdd9e6e 100644 --- a/.github/workflows/gcc-bpf.yml +++ b/.github/workflows/gcc-bpf.yml @@ -37,6 +37,10 @@ jobs: steps: - uses: actions/checkout@v4 + with: + sparse-checkout: | + .github + ci - if: ${{ inputs.download_sources }} name: Download bpf-next tree @@ -45,6 +49,12 @@ jobs: dest: ${{ env.REPO_ROOT }} rev: ${{ env.BPF_NEXT_BASE_BRANCH }} + - if: ${{ ! inputs.download_sources }} + name: Checkout ${{ github.repository }} to ./src + uses: actions/checkout@v4 + with: + path: 'src' + - uses: libbpf/ci/patch-kernel@v3 with: patches-root: '${{ github.workspace }}/ci/diffs'