Skip to content

Commit 4c78f40

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/[email protected]/ Signed-off-by: Ihor Solodrai <[email protected]>
1 parent c422391 commit 4c78f40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)