Skip to content

Commit 4466997

Browse files
committed
Run only 13 and ace5pro 37
1 parent bba5aac commit 4466997

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -218,31 +218,17 @@ jobs:
218218
#git commit -s -a -m "getting rid of -dirty"
219219
220220
BUILD_TYPE="gki"
221+
BAZEL_ARGS=(--jobs=$(nproc --all) --verbose_failures --lto=thin --spawn_strategy=local --no_build_dtc --skip_unused_modules)
221222
if [ "${{ inputs.soc }}" == "sun" ]; then
222223
BUILD_TYPE="perf"
224+
BAZEL_ARGS+=(-g)
223225
fi
224226
225-
# sed -i '/build_with_bazel\.py/{
226-
# N;N;
227-
# s/\("$KERNEL_VARIANT"\)/\1 --jobs=4/
228-
# }' ./kernel_platform/msm-kernel/build_with_bazel.py
229-
# export MAKEFLAGS="-j$(nproc)"
230-
# find ./kernel_platform -type f -exec sed -i 's/\(make\s\+-C[^\n]*\)\s\+/\1 -j$(nproc) /g' {} +
231-
# sed -i '/echo "kpl-time-check kernel start $(date +%H:%M:%S)"/a\ set -x' ./kernel_platform/build/android/prepare_vendor.sh
232-
# cat ./kernel_platform/build/android/prepare_vendor.sh
233-
# LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} $BUILD_TYPE
234-
# ls -l kernel_platform/WORKSPACE
235-
# rm ./kernel_platform/WORKSPACE
236-
# cp ./kernel_platform/msm-kernel/bazel.WORKSPACE ./kernel_platform/WORKSPACE
237-
# ln -sf ../msm-kernel/msm_kernel_extensions.bzl kernel_platform/build/msm_kernel_extensions.bzl
238-
# ln -sf ../../bootable/bootloader/edk2/abl_extensions.bzl kernel_platform/build/abl_extensions.bzl
239-
# cd kernel_platform
240-
# /home/runner/work/OnePlus_KernelSU_SUSFS/OnePlus_KernelSU_SUSFS/OP13/kernel_platform/tools/bazel --output_user_root="/home/runner/work/OnePlus_KernelSU_SUSFS/OnePlus_KernelSU_SUSFS/OP13/bazel-cache" query "--ui_event_filters=-info" "--noshow_progress" 'filter("sun_perf.*_dist$", attr(generator_function, define_msm_platforms, msm-kernel/...))'
241-
# Read environment variables and write to bzl file
242-
OPLUS_FEATURES=$(export|grep -e "^declare -x OPLUS_FEATURE_BSP_"|sed 's/declare -x //g'|sed 's/"//g'|tr '\n' ' ')
243-
# setup build parameters before building external modules
244-
./kernel_platform/oplus/bazel/oplus_modules_variant.sh ${{ inputs.soc }} "$BUILD_TYPE" "${OPLUS_FEATURES}"
245-
./kernel_platform/build_with_bazel.py -t ${{ inputs.soc }} "$BUILD_TYPE" --jobs=$(nproc --all) --lto=thin -g --verbose_failures -o "$(pwd)/out"
227+
if [ -f ./kernel_platform/build_with_bazel.py ]; then
228+
./kernel_platform/build_with_bazel.py -t ${{ inputs.soc }} "$BUILD_TYPE" "${BAZEL_ARGS[@]}" -o "$(pwd)/out"
229+
else
230+
./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
231+
fi
246232
247233
- name: Copy Images
248234
run: |

0 commit comments

Comments
 (0)