Skip to content

Commit

Permalink
fix wrong package in fedora installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptSathi committed Apr 19, 2024
1 parent ea93502 commit 18f7d96
Showing 1 changed file with 35 additions and 36 deletions.
71 changes: 35 additions & 36 deletions .github/workflows/test-bpftrace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,42 @@ jobs:
image: "manjusakalza/bpftime-base-image:${{matrix.container.image}}"
options: --privileged
steps:
- name: Install bpftrace dependencies
- name: Install bpftrace dependencies in fedora
if: ${{ matrix.container.name=='fedora' }}
run: |
dnf -y update && dnf install -y \
make \
gcc-c++-aarch64-linux-gnu \
gcc-arm-linux-gnu \
clang \
boost-devel \
zlib-devel \
libubsan \
g++ \
llvm \
elfutils-libelf-devel \
qemu-user \
cmake \
gcc-c++ \
gcc-aarch64-linux-gnu \
llvm15-devel \
systemtap-sdt-devel \
gcc \
asciidoctor \
bison \
binutils-devel \
bcc-devel \
cereal-devel \
clang-devel \
elfutils-devel \
elfutils-libs \
flex \
libpcap-devel \
libbpf-devel \
llvm-devel
- name: Install bpftrace dependencies in ubuntu
if: ${{ matrix.container.name=='ubuntu' }}
run: |
if [ "${{ matrix.container.name }}" = "ubuntu" ]; then
apt-get update && apt-get install -y \
--no-install-recommends \
libelf1 \
Expand Down Expand Up @@ -60,40 +93,6 @@ jobs:
bison \
asciidoctor \
libbpf-dev
elif [ "${{ matrix.container.name }}" = "fedora" ]; then
dnf -y update && dnf install -y \
elfutils-libelf \
elfutils-libelf-devel \
zlib-devel \
make \
cmake \
git \
boost-devel \
binutils-devel \
yaml-cpp-devel \
gcc \
gcc-c++ \
ca-certificates \
clang \
llvm \
systemtap-sdt-devel \
clang-devel \
lldb-devel \
llvm-devel \
libpcap-devel \
libiberty-devel \
cereal-devel \
libbpf-devel \
flex \
bison \
asciidoctor \
bpftrace \
kernel-devel
else
echo "Unsupported container type"
exit 1
fi
- uses: actions/checkout@v2
name: "Clone the latest version"
with:
Expand Down

0 comments on commit 18f7d96

Please sign in to comment.