@@ -188,24 +188,28 @@ jobs:
188
188
189
189
- name : Install prerequisites
190
190
if : runner.os == 'macOS'
191
+ # The xargs shipped on macOS always exits 0 with -P0, so we need GNU findutils.
192
+ #
193
+ # The tar shipped on macOS doesn't support --wildcards, so we need GNU tar.
194
+ #
191
195
# The clang shipped on macOS doesn't support BPF, so we need LLVM from brew.
192
196
#
193
197
# We also need LLVM for bpf-linker, see comment below.
194
198
run : |
195
199
set -euxo pipefail
196
- brew install findutils qemu dpkg pkg-config llvm
200
+ brew update
201
+ brew install dpkg findutils gnu-tar llvm pkg-config
202
+ # Workaround for https://github.com/Homebrew/homebrew-core/pull/139492.
203
+ brew reinstall qemu
204
+ echo /usr/local/opt/findutils/libexec/gnubin >> $GITHUB_PATH
205
+ echo /usr/local/opt/gnu-tar/libexec/gnubin >> $GITHUB_PATH
197
206
echo /usr/local/opt/llvm/bin >> $GITHUB_PATH
198
207
199
208
- name : bpf-linker
200
209
if : runner.os == 'macOS'
201
210
# NB: rustc doesn't ship libLLVM.so on macOS, so disable proxying (default feature).
202
211
run : cargo install bpf-linker --git https://github.com/aya-rs/bpf-linker.git --no-default-features
203
212
204
- - name : Alias gxargs as xargs
205
- if : runner.os == 'macOS'
206
- # macOS xargs always exits 0 with -P0.
207
- run : mkdir xargs-is-gxargs && ln -s "$(which gxargs)" xargs-is-gxargs/xargs && echo "$PWD"/xargs-is-gxargs >> $GITHUB_PATH
208
-
209
213
- name : Download debian kernels
210
214
if : runner.arch == 'ARM64'
211
215
run : |
@@ -232,11 +236,6 @@ jobs:
232
236
linux-image-6.4.0-2-cloud-amd64-unsigned_6.4.4-3_amd64.deb \
233
237
| xargs -0 -t -P0 -I {} wget -nd -nv -P test/.tmp/debian-kernels/amd64 ftp://ftp.us.debian.org/debian/pool/main/l/linux/{}
234
238
235
- - name : Alias gtar as tar
236
- if : runner.os == 'macOS'
237
- # macOS tar doesn't support --wildcards which we use below.
238
- run : mkdir tar-is-gtar && ln -s "$(which gtar)" tar-is-gtar/tar && echo "$PWD"/tar-is-gtar >> $GITHUB_PATH
239
-
240
239
- name : Extract debian kernels
241
240
run : |
242
241
set -euxo pipefail
0 commit comments