Skip to content

Commit 880c2b3

Browse files
committed
Remove unwanted script code and add exit on system clang selected
1 parent 5c83a11 commit 880c2b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,7 @@ runs:
370370
else
371371
echo "No workspace_status_stamp.py!"
372372
fi
373-
sed -i '/echo "LTO $LTO "/i export LTO=thin' ./oplus/build/oplus_setup.sh
374-
sed -i 's/export REPACK_IMG=true/export REPACK_IMG=false/g' ./oplus/build/oplus_setup.sh
373+
375374
DATESTR=$(date -u)
376375
perl -pi -e 's{UTS_VERSION="\$\(echo \$UTS_VERSION \$CONFIG_FLAGS \$TIMESTAMP \| cut -b -\$UTS_LEN\)"}{UTS_VERSION="#1 SMP PREEMPT '"$DATESTR"'"}' ./common/scripts/mkcompile_h
377376
perl -pi -e 's{UTS_VERSION="\$\(echo \$UTS_VERSION \$CONFIG_FLAGS \$TIMESTAMP \| cut -b -\$UTS_LEN\)"}{UTS_VERSION="#1 SMP PREEMPT '"$DATESTR"'"}' ./msm-kernel/scripts/mkcompile_h
@@ -430,6 +429,7 @@ runs:
430429
elif command -v clang >/dev/null 2>&1; then
431430
SELECTED_CLANG="$(command -v clang)"
432431
echo "Using system Clang: $SELECTED_CLANG"
432+
exit 1
433433
else
434434
echo "Error: No valid Clang binary found"
435435
exit 1

0 commit comments

Comments
 (0)