forked from vbpf/ebpf-verifier
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI/CD for updated bpf_conformance (vbpf#346)
The updated bpf_conformance requires a new(er) version of libbpf than is available on github runners. With this change, we build our own version of libbpf from source so that we are using a new(er) version of the library with all the necessary features. Signed-off-by: Will Hawkins <[email protected]>
- Loading branch information
Showing
3 changed files
with
56 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/bash | ||
# Copyright (c) Microsoft Corporation | ||
# SPDX-License-Identifier: MIT | ||
|
||
git clone https://github.com/libbpf/libbpf.git | ||
if [ $? -ne 0 ]; then | ||
echo "Could not clone the libbpf repository." | ||
exit 1 | ||
fi | ||
|
||
# Jump in to the src directory to do the actual build. | ||
cd libbpf/src | ||
|
||
make | ||
if [ $? -ne 0 ]; then | ||
echo "Could not build libbpf source." | ||
exit 1 | ||
fi | ||
|
||
# Now that the build was successful, install the library (shared | ||
# object and header files) in a spot where FindLibBpf.cmake can | ||
# find it when it is being built. | ||
sudo PREFIX=/usr LIBDIR=/usr/lib/x86_64-linux-gnu/ make install | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,46 +167,46 @@ jobs: | |
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: RelWithDebInfo | ||
upload_packages: true | ||
|
||
linux_release_arm64: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: arm64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: RelWithDebInfo | ||
|
||
linux_release_scan_build: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: RelWithDebInfo | ||
scan_build: true | ||
|
||
linux_release_scan_build_no_retpolines: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: RelWithDebInfo | ||
disable_retpolines: true | ||
|
||
linux_release_coverage: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: RelWithDebInfo | ||
enable_coverage: true | ||
|
||
linux_release_coverage_no_retpolines: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: RelWithDebInfo | ||
enable_coverage: true | ||
disable_retpolines: true | ||
|
@@ -215,23 +215,23 @@ jobs: | |
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: arm64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: RelWithDebInfo | ||
enable_coverage: true | ||
|
||
linux_release_sanitizers: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: RelWithDebInfo | ||
enable_sanitizers: true | ||
|
||
linux_release_sanitizers_no_retpolines: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: RelWithDebInfo | ||
enable_sanitizers: true | ||
disable_retpolines: true | ||
|
@@ -241,46 +241,46 @@ jobs: | |
# uses: ./.github/workflows/posix.yml | ||
# with: | ||
# arch: arm64 | ||
# platform: ubuntu-20.04 | ||
# platform: ubuntu-latest | ||
# build_type: RelWithDebInfo | ||
# enable_sanitizers: true | ||
|
||
linux_debug: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: Debug | ||
|
||
linux_debug_no_retpolines: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: Debug | ||
disable_retpolines: true | ||
|
||
linux_debug_arm64: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: arm64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: Debug | ||
upload_packages: true | ||
|
||
linux_debug_coverage: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: Debug | ||
enable_coverage: true | ||
|
||
linux_debug_coverage_no_retpolines: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: Debug | ||
enable_coverage: true | ||
disable_retpolines: true | ||
|
@@ -289,23 +289,23 @@ jobs: | |
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: arm64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: Debug | ||
enable_coverage: true | ||
|
||
linux_debug_sanitizers: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: Debug | ||
enable_sanitizers: true | ||
|
||
linux_debug_sanitizers_no_retpolines: | ||
uses: ./.github/workflows/posix.yml | ||
with: | ||
arch: x86_64 | ||
platform: ubuntu-20.04 | ||
platform: ubuntu-latest | ||
build_type: Debug | ||
enable_sanitizers: true | ||
disable_retpolines: true | ||
|
@@ -315,7 +315,7 @@ jobs: | |
# uses: ./.github/workflows/posix.yml | ||
# with: | ||
# arch: arm64 | ||
# platform: ubuntu-20.04 | ||
# platform: ubuntu-latest | ||
# build_type: Debug | ||
# enable_sanitizers: true | ||
|
||
|
@@ -330,7 +330,7 @@ jobs: | |
- linux_release_arm64_coverage | ||
- linux_debug_arm64_coverage | ||
|
||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters