Skip to content

Commit 67e2ae9

Browse files
committed
setup-build-env: support pahole=none input
Allow action caller to skip building pahole by passing 'none' as the target revision. See: https://lore.kernel.org/dwarves/8f5711430e4f9bb02fd06d3a5b00d46d8643fea1@linux.dev/ Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
1 parent 4a947d1 commit 67e2ae9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

setup-build-env/build_pahole.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -eu
55
PAHOLE_BRANCH=${PAHOLE_BRANCH:-master}
66
PAHOLE_ORIGIN=${PAHOLE_ORIGIN:-https://git.kernel.org/pub/scm/devel/pahole/pahole.git}
77

8+
if [ "$PAHOLE_BRANCH" == "none" ]; then
9+
echo "WARNING: will not build and install pahole, because 'pahole: none' was passed to the action call"
10+
exit 0
11+
fi
12+
813
source $(cd $(dirname $0) && pwd)/../helpers.sh
914

1015
foldable start build_pahole "Building pahole"

0 commit comments

Comments
 (0)