github: use gxargs on macOS

`xargs -P0` always exits 0 on macOS, even on error.
pull/756/head
Tamir Duberstein 1 year ago
parent 47a8a4b878
commit 89eafd139d
No known key found for this signature in database

@ -193,7 +193,7 @@ jobs:
# We also need LLVM for bpf-linker, see comment below. # We also need LLVM for bpf-linker, see comment below.
run: | run: |
set -euxo pipefail set -euxo pipefail
brew install qemu dpkg pkg-config llvm brew install findutils qemu dpkg pkg-config llvm
echo /usr/local/opt/llvm/bin >> $GITHUB_PATH echo /usr/local/opt/llvm/bin >> $GITHUB_PATH
- name: bpf-linker - name: bpf-linker
@ -201,6 +201,11 @@ jobs:
# NB: rustc doesn't ship libLLVM.so on macOS, so disable proxying (default feature). # NB: rustc doesn't ship libLLVM.so on macOS, so disable proxying (default feature).
run: cargo install bpf-linker --git https://github.com/aya-rs/bpf-linker.git --no-default-features run: cargo install bpf-linker --git https://github.com/aya-rs/bpf-linker.git --no-default-features
- name: Alias gxargs as xargs
if: runner.os == 'macOS'
# macOS xargs always exits 0 with -P0.
run: mkdir xargs-is-gxargs && ln -s "$(which gxargs)" xargs-is-gxargs/xargs && echo "$PWD"/xargs-is-gxargs >> $GITHUB_PATH
- name: Download debian kernels - name: Download debian kernels
if: runner.arch == 'ARM64' if: runner.arch == 'ARM64'
run: | run: |

Loading…
Cancel
Save