From 89eafd139d06c91cb137e36d8c13c3be13e6b936 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Mon, 14 Aug 2023 11:00:16 -0400 Subject: [PATCH] github: use gxargs on macOS `xargs -P0` always exits 0 on macOS, even on error. --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f886c2a9..c408ee93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,7 +193,7 @@ jobs: # We also need LLVM for bpf-linker, see comment below. run: | 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 - name: bpf-linker @@ -201,6 +201,11 @@ jobs: # 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 + - 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 if: runner.arch == 'ARM64' run: |