From 2c34ec174249c820fdc4257d03591e3d23ce6627 Mon Sep 17 00:00:00 2001 From: weishu Date: Fri, 15 Mar 2024 20:29:53 +0800 Subject: [PATCH] ci: fix avd build --- .github/workflows/avd-kernel.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/avd-kernel.yml b/.github/workflows/avd-kernel.yml index baf8e4a3..7a9b5fa4 100644 --- a/.github/workflows/avd-kernel.yml +++ b/.github/workflows/avd-kernel.yml @@ -133,7 +133,11 @@ jobs: fi tools/bazel run --disk_cache=/home/runner/.cache/bazel --config=fast --config=stamp --lto=thin //common-modules/virtual-device:virtual_device_${{ inputs.arch }}_dist -- --dist_dir=dist NAME=kernel-${{ inputs.arch }}-avd-${{ inputs.version_name }}-${{ env.kernelsu_version }} - mv dist/bzImage $NAME + TARGET_IMAGE=dist/bzImage + if [ ! -e $TARGET_IMAGE ]; then + TARGET_IMAGE=dist/Image + fi + mv $TARGET_IMAGE $NAME echo "file_path=android-kernel/$NAME" >> $GITHUB_ENV - name: Upload Kernel