Skip to content

Commit dcde0b8

Browse files
authored
GCC BPF: fix kernel source checkout at kernel-patches/bpf (kernel-patches#339)
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
1 parent 83c4015 commit dcde0b8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/gcc-bpf.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
steps:
3838

3939
- uses: actions/checkout@v4
40+
with:
41+
sparse-checkout: |
42+
.github
43+
ci
4044
4145
- if: ${{ inputs.download_sources }}
4246
name: Download bpf-next tree
@@ -45,6 +49,12 @@ jobs:
4549
dest: ${{ env.REPO_ROOT }}
4650
rev: ${{ env.BPF_NEXT_BASE_BRANCH }}
4751

52+
- if: ${{ ! inputs.download_sources }}
53+
name: Checkout ${{ github.repository }} to ./src
54+
uses: actions/checkout@v4
55+
with:
56+
path: 'src'
57+
4858
- uses: libbpf/ci/patch-kernel@v3
4959
with:
5060
patches-root: '${{ github.workspace }}/ci/diffs'

0 commit comments

Comments
 (0)