mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2026-11-02 08:10:02 -06:00
changes
This commit is contained in:
1 parent
7443c4e24c
commit
978eba0f0c
1 file changed
+2
-23
@@ -18,30 +18,9 @@ jobs:
|
||||
sudo /bin/apt-get update
|
||||
sudo /bin/apt-get install --no-install-recommends \
|
||||
python3-pip clang gcc gcc-multilib llvm libelf-dev graphviz esbuild \
|
||||
pkg-config libbpf-dev mold unzip curl ca-certificates
|
||||
pkg-config libbpf-dev mold unzip linux-tools-common
|
||||
|
||||
BPFTOOL_VERSION="7.7.0"
|
||||
case "$(uname -m)" in
|
||||
x86_64) BPFTOOL_ARCH="amd64" ;;
|
||||
aarch64) BPFTOOL_ARCH="arm64" ;;
|
||||
*)
|
||||
echo "Unsupported architecture for upstream bpftool binary: $(uname -m)" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
BPFTOOL_TARBALL="bpftool-v${BPFTOOL_VERSION}-${BPFTOOL_ARCH}.tar.gz"
|
||||
BPFTOOL_BASE_URL="https://github.com/libbpf/bpftool/releases/download/v${BPFTOOL_VERSION}"
|
||||
download_with_retry() {
|
||||
local url="$1"
|
||||
curl --retry 5 --retry-delay 2 --retry-all-errors -fsSLO "${url}"
|
||||
}
|
||||
|
||||
download_with_retry "${BPFTOOL_BASE_URL}/${BPFTOOL_TARBALL}"
|
||||
download_with_retry "${BPFTOOL_BASE_URL}/${BPFTOOL_TARBALL}.sha256sum"
|
||||
sha256sum -c "${BPFTOOL_TARBALL}.sha256sum"
|
||||
tar -xzf "${BPFTOOL_TARBALL}"
|
||||
sudo install -m 0755 bpftool /usr/local/bin/bpftool
|
||||
sudo install -m 0755 /usr/sbin/bpftool /usr/local/bin/bpftool
|
||||
command -v bpftool
|
||||
bpftool version
|
||||
- name: Build
|
||||
|
||||
Reference in new issue
Block a user