@@ -64,10 +64,10 @@ jobs:
6464 run : |
6565 sudo apt update
6666 sudo apt install -y --no-install-recommends ca-certificates cmake build-essential clang llvm git pkg-config autoconf automake libtool libelf-dev libcap-dev linux-headers-$(uname -r)
67- git clone https://github.com/libbpf/bpftool.git --branch v7.3.0 --single-branch
68- cd bpftool
69- git submodule update --init
70- cd src && sudo make install
67+
68+ - name : Install bpftool 🐝
69+ if : needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true'
70+ uses : ./.github/actions/ install-bpftool
7171
7272 - name : Build scap-open and drivers 🏗️
7373 if : needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true'
@@ -138,10 +138,10 @@ jobs:
138138 run : |
139139 sudo apt update
140140 sudo apt install -y --no-install-recommends ca-certificates cmake build-essential git pkg-config autoconf automake libelf-dev libcap-dev clang llvm libtool linux-headers-$(uname -r)
141- git clone https://github.com/libbpf/bpftool.git --branch v7.3.0 --single-branch
142- cd bpftool
143- git submodule update --init
144- cd src && sudo make install
141+
142+ - name : Install bpftool 🐝
143+ if : needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true'
144+ uses : ./.github/actions/ install-bpftool
145145
146146 - name : Install multilib compilers for ia32 tests
147147 if : (needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true') && matrix.arch == 'amd64'
@@ -244,10 +244,10 @@ jobs:
244244 run : |
245245 sudo apt update
246246 sudo apt install -y --no-install-recommends ca-certificates cmake build-essential git pkg-config autoconf automake libelf-dev libcap-dev clang llvm libtool linux-headers-$(uname -r)
247- git clone https://github.com/libbpf/bpftool.git --branch v7.3.0 --single-branch
248- cd bpftool
249- git submodule update --init
250- cd src && sudo make install
247+
248+ - name : Install bpftool 🐝
249+ if : needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true'
250+ uses : ./.github/actions/ install-bpftool
251251
252252 - name : Build drivers tests 🏗️
253253 if : needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true'
0 commit comments