Skip to content

Commit

Permalink
ci: install libpcap (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinkerYzu1 committed Aug 14, 2024
1 parent 5489ef2 commit c1e147b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/kernel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
fetch-depth: 50
- if: ${{ inputs.download_sources }}
name: Download bpf-next tree
uses: libbpf/ci/get-linux-source@main
uses: ThinkerYzu1/libbpf-ci/get-linux-source@libpcap
with:
dest: '.kernel'
- if: ${{ inputs.download_sources }}
Expand All @@ -84,25 +84,25 @@ jobs:
shell: bash
run: |
bash .github/scripts/prepare-incremental-builds.sh ${{ steps.get-commit-metadata.outputs.commit }}
- uses: libbpf/ci/patch-kernel@main
- uses: ThinkerYzu1/libbpf-ci/patch-kernel@libpcap
with:
patches-root: '${{ github.workspace }}/ci/diffs'
repo-root: '${{ github.workspace }}'
- name: Setup build environment
uses: libbpf/ci/setup-build-env@main
uses: ThinkerYzu1/libbpf-ci/setup-build-env@libpcap
with:
arch: ${{ inputs.arch }}
llvm-version: ${{ inputs.llvm-version }}
- name: Build kernel image
uses: libbpf/ci/build-linux@main
uses: ThinkerYzu1/libbpf-ci/build-linux@libpcap
with:
arch: ${{ inputs.arch }}
toolchain: ${{ inputs.toolchain }}
kbuild-output: ${{ env.KBUILD_OUTPUT }}
max-make-jobs: 32
llvm-version: ${{ inputs.llvm-version }}
- name: Build selftests
uses: libbpf/ci/build-selftests@main
uses: ThinkerYzu1/libbpf-ci/build-selftests@libpcap
with:
arch: ${{ inputs.arch }}
toolchain: ${{ inputs.toolchain }}
Expand All @@ -116,7 +116,7 @@ jobs:
RELEASE: ${{ inputs.release && '1' || '' }}
- if: ${{ github.event_name != 'push' }}
name: Build samples
uses: libbpf/ci/build-samples@main
uses: ThinkerYzu1/libbpf-ci/build-samples@libpcap
with:
arch: ${{ inputs.arch }}
toolchain: ${{ inputs.toolchain }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kernel-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
# zstd is installed by default in the runner images.
run: zstd -d -T0 vmlinux-${{ inputs.arch }}-${{ inputs.toolchain_full }}.tar.zst --stdout | tar -xf -
- name: Run selftests
uses: libbpf/ci/run-vmtest@main
uses: ThinkerYzu1/libbpf-ci/run-vmtest@libpcap
# https://github.com/actions/runner/issues/1483#issuecomment-1031671517
# booleans are weird in GH.
continue-on-error: ${{ fromJSON(env.CONTINUE_ON_ERROR) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kernel-veristat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}

- name: Run veristat
uses: libbpf/ci/run-vmtest@main
uses: ThinkerYzu1/libbpf-ci/run-vmtest@libpcap
with:
arch: x86_64
img: '/tmp/root.img'
Expand Down

0 comments on commit c1e147b

Please sign in to comment.