File tree 5 files changed +21
-10
lines changed
aarch64-unknown-linux-musl/release
x86_64-unknown-linux-musl/release
5 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -74,29 +74,33 @@ jobs:
74
74
- name : Tests
75
75
run : make test TARGET_ARCH=${{ matrix.target_arch }}
76
76
77
- check-ebpf -blobs :
78
- name : Check for differences in the eBPF binary blobs
77
+ check-binary -blobs :
78
+ name : Check for differences in the eBPF and Rust binary blobs
79
79
runs-on : ubuntu-24.04
80
80
container : otel/opentelemetry-ebpf-profiler-dev:latest
81
+ defaults :
82
+ run :
83
+ shell : bash --login {0}
81
84
steps :
82
85
- name : Clone code
83
86
uses : actions/checkout@v4
84
- - name : Hash eBPF blobs
85
- run : |
86
- sha256sum support/ebpf/tracer.ebpf.release.* > ebpf-blobs.hash
87
87
- name : Rebuild eBPF blobs
88
88
run : |
89
89
rm support/ebpf/tracer.ebpf.release.*
90
90
make amd64 -C support/ebpf
91
91
make arm64 -C support/ebpf
92
+ - name : Rebuild Rust blobs
93
+ run : |
94
+ rm -rf target/
95
+ make rust-components TARGET_ARCH=amd64
96
+ make rust-components TARGET_ARCH=arm64
92
97
- name : Check for differences
93
98
run : |
94
- if ! sha256sum --check ebpf-blobs.hash ; then
95
- echo "Please rebuild and commit the updated eBPF binary blobs."
99
+ if ! git diff --exit-code --name-only ; then
100
+ echo "Binary blob(s) changed, please rebuild and commit the updated blobs."
96
101
exit 1
97
102
fi
98
103
99
-
100
104
build-integration-test-binaries :
101
105
name : Build integration test binaries (${{ matrix.target_arch }})
102
106
runs-on : ubuntu-24.04
Original file line number Diff line number Diff line change 5
5
/go
6
6
ebpf-profiler
7
7
ci-kernels
8
- /target
8
+ # Ignore target directory
9
+ target /*
10
+ # But not these specific paths
11
+ ! target /x86_64-unknown-linux-musl /release /libsymblib_capi.a
12
+ ! target /aarch64-unknown-linux-musl /release /libsymblib_capi.a
Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ FROM debian:testing-20241223-slim
2
2
3
3
WORKDIR /agent
4
4
5
+ RUN dpkg --add-architecture amd64 && dpkg --add-architecture arm64
6
+
5
7
# cross_debian_arch: amd64 or arm64
6
8
# cross_pkg_arch: x86-64 or aarch64
7
9
RUN cross_debian_arch=$(uname -m | sed -e 's/aarch64/amd64/' -e 's/x86_64/arm64/' ); \
8
10
cross_pkg_arch=$(uname -m | sed -e 's/aarch64/x86-64/' -e 's/x86_64/aarch64/' ); \
9
11
apt-get update -y && \
10
12
apt-get dist-upgrade -y && \
11
13
apt-get install -y curl wget make git cmake clang-17 unzip libc6-dev g++ gcc pkgconf \
12
- gcc-${cross_pkg_arch}-linux-gnu libc6-${cross_debian_arch}-cross musl-dev && \
14
+ gcc-${cross_pkg_arch}-linux-gnu libc6-${cross_debian_arch}-cross \
15
+ musl-dev:amd64 musl-dev:arm64 && \
13
16
apt-get clean autoclean && \
14
17
apt-get autoremove --yes
15
18
You can’t perform that action at this time.
0 commit comments