Browse Source

maybe fix?

TheWildJames 2 months ago
parent
commit
ca2554884c
1 changed files with 3 additions and 8 deletions
  1. 3 8
      .github/actions/build-kernel/action.yml

+ 3 - 8
.github/actions/build-kernel/action.yml

@@ -42,7 +42,6 @@ runs:
     shell: bash
     working-directory: ${{ github.workspace }}/kernel
     run: |
-      cat common/arch/arm64/configs/gki_defconfig
       sed -i 's/check_defconfig//' ./common/build.config.gki
       if [ -f "build/build.sh" ]; then
         BUILD_GKI_ARTIFACTS= \
@@ -70,21 +69,17 @@ runs:
           //common:kernel_aarch64/Image
       fi
 
-      cat /home/runner/out/common/.config || true
-
   - name: 'Gather Build Artifacts'
     shell: bash
     working-directory: ${{ github.workspace }}/kernel
     run: |
       set -euo pipefail
-      if [ -f "bazel-bin/common/kernel_aarch64" ]; then
-        echo "Found Image at /home/runner/out/dist/Image"
+      if [ -f "bazel-bin/common/kernel_aarch64/Image" ]; then
+        echo "Found Image at bazel-bin/common/kernel_aarch64/Image"
         if [[ ${{ inputs.bypass }} == "true" ]]; then
           cp "bazel-bin/common/kernel_aarch64/Image" "${{ github.workspace }}/AnyKernel3/Bypass-Image"
         else
-          cp "bazel-bin/common/kernel_aarch64" "${{ github.workspace }}/AnyKernel3/Image"
-          echo "Kernel Version:"
-          strings "bazel-bin/common/kernel_aarch64/Image" | grep -m1 "^Linux version "
+          cp "bazel-bin/common/kernel_aarch64/Image" "${{ github.workspace }}/AnyKernel3/Image"
         fi
           exit 0
         fi