Skip to content

Commit d103311

Browse files
committed
Test
1 parent b7ddd43 commit d103311

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ jobs:
354354
if [ -f ./kernel_platform/build_with_bazel.py ]; then
355355
./kernel_platform/oplus/bazel/oplus_modules_variant.sh ${{ inputs.soc }} "$BUILD_TYPE" ""
356356
./kernel_platform/build_with_bazel.py -t ${{ inputs.soc }} $BUILD_TYPE "${BAZEL_ARGS[@]}" -o "$(pwd)/out"
357+
if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
358+
./kernel_platform/oplus/build/oplus_rebuild_img.sh ${{ inputs.soc }} "$BUILD_TYPE"
359+
fi
357360
else
358361
LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
359362
fi
@@ -365,13 +368,20 @@ jobs:
365368
366369
echo "Copying Image"
367370
cp ./out/dist/Image ../AnyKernel3/Image
368-
cp ./out/dist/dtbo.img ../AnyKernel3/dtbo.img
371+
if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
372+
cp ./out/dist/dtbo.img ../AnyKernel3/dtbo.img
373+
zip -r -FF "../out.zip" ./out/*
374+
fi
369375
370376
- name: Create ZIP Files for Different Formats
371377
run: |
372378
echo "Navigating to AnyKernel3 directory..."
373379
cd ./AnyKernel3
374380
381+
if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
382+
sed -i '/flash_boot/a flash_dtbo' ./anykernel.sh
383+
fi
384+
375385
# Zip the files in the AnyKernel3 directory with a new naming convention
376386
ZIP_NAME="${{ inputs.model }}_${{ inputs.android_version }}_${{ inputs.kernel_version }}_Next_SUSFS_AnyKernel3.zip"
377387
echo "Creating zip file $ZIP_NAME..."

0 commit comments

Comments
 (0)