Skip to content

Commit

Permalink
CI: Check for differences in the eBPF binary blobs (#305)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl authored Jan 14, 2025
1 parent 99a9ce7 commit fae9351
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/unit-test-on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,29 @@ jobs:
- name: Tests
run: make test TARGET_ARCH=${{ matrix.target_arch }}

check-ebpf-blobs:
name: Check for differences in the eBPF binary blobs
runs-on: ubuntu-24.04
container: otel/opentelemetry-ebpf-profiler-dev:latest
steps:
- name: Clone code
uses: actions/checkout@v4
- name: Hash eBPF blobs
run: |
sha256sum support/ebpf/tracer.ebpf.release.* > ebpf-blobs.hash
- name: Rebuild eBPF blobs
run: |
rm support/ebpf/tracer.ebpf.release.*
make amd64 -C support/ebpf
make arm64 -C support/ebpf
- name: Check for differences
run: |
if ! sha256sum --check ebpf-blobs.hash; then
echo "Please rebuild and commit the updated eBPF binary blobs."
exit 1
fi
build-integration-test-binaries:
name: Build integration test binaries (${{ matrix.target_arch }})
runs-on: ubuntu-24.04
Expand Down

0 comments on commit fae9351

Please sign in to comment.