Explorar el Código

ci(build): update build workflow to use build_type instead of use_make

Replace boolean use_make flag with string build_type for clearer build configuration
TheWildJames hace 1 año
padre
commit
bd7216ab31
Se han modificado 1 ficheros con 11 adiciones y 11 borrados
  1. 11 11
      .github/workflows/build.yml

+ 11 - 11
.github/workflows/build.yml

@@ -28,7 +28,7 @@ jobs:
     timeout-minutes: 120
     strategy:
       matrix:
-        use_make: [true, false]
+        build_type: ["make", "normal"]
 
     steps:
       # # - name: Maximize Build Space
@@ -343,7 +343,7 @@ jobs:
           perl -pi -e 's/^\s*"protected_exports_list"\s*:\s*"android\/abi_gki_protected_exports_aarch64",\s*$//;' ./common/BUILD.bazel
 
       - name: Build
-        if: ${{ matrix.use_make == false }}
+        if: ${{ matrix.build_type == 'normal' }}
         run : |
           set -e
           set -x
@@ -356,7 +356,7 @@ jobs:
           fi
 
       - name: Create Bootimgs Folder and Copy Images for Android 12/13
-        if: ${{ (inputs.android_version == 'android12' || inputs.android_version == 'android13') && matrix.use_make == false }}
+        if: ${{ (inputs.android_version == 'android12' || inputs.android_version == 'android13') && matrix.build_type == 'normal' }}
         run: |
           mkdir bootimgs
 
@@ -370,7 +370,7 @@ jobs:
           gzip -n -k -f -9 ./Image > ./Image.gz
 
       - name: Create Bootimgs Folder and Copy Images for Android 14/15
-        if: ${{ (inputs.android_version == 'android14' || inputs.android_version == 'android15') && matrix.use_make == false }}
+        if: ${{ (inputs.android_version == 'android14' || inputs.android_version == 'android15') && matrix.build_type == 'normal' }}
         run: |
           mkdir bootimgs
 
@@ -384,7 +384,7 @@ jobs:
           gzip -n -k -f -9 ./Image > ./Image.gz
 
       - name: Detect Clang Version from Configs
-        if: ${{ matrix.use_make == true }}
+        if: ${{ matrix.build_type == 'make' }}
         run: |
           KERNEL_PATH="$GITHUB_WORKSPACE/$CONFIG"
           DEFCONFIG="$KERNEL_PATH/common/arch/arm64/configs/gki_defconfig"
@@ -425,7 +425,7 @@ jobs:
 
 
       - name: Build Kernel
-        if: ${{ matrix.use_make == true }}
+        if: ${{ matrix.build_type == 'make' }}
         run: |
           KERNEL_PATH="$GITHUB_WORKSPACE/$CONFIG"
           CLANG_BIN_PATH="${{ env.CLANG_BIN_PATH }}"
@@ -478,7 +478,7 @@ jobs:
           make -j$(nproc --all) O=out $MAKE_ARGS KCFLAGS+="-Wno-error -O2 -flto=thin -fno-stack-protector" || exit 1
 
       - name: Create Kernel ZIP
-        if: ${{ matrix.use_make == true }}
+        if: ${{ matrix.build_type == 'make' }}
         run: |
           cp $CONFIG/common/out/arch/arm64/boot/Image AnyKernel3/Image
 
@@ -494,7 +494,7 @@ jobs:
           zip -r "../$ZIP_NAME" ./*
 
       - name: Android 12 boot image build script
-        if: ${{ inputs.android_version == 'android12' && matrix.use_make == false }}
+        if: ${{ inputs.android_version == 'android12' && matrix.build_type == 'normal' }}
         run: |
           echo "Changing to configuration directory: $CONFIG..."
           cd bootimgs
@@ -547,7 +547,7 @@ jobs:
           cp ./boot-lz4.img ../WKSU-$KSUVER-${{ inputs.android_version }}-${{ inputs.kernel_version }}.$SUBLEVEL_FOR_NAME-${{ inputs.os_patch_level }}-boot-lz4.img
 
       - name: Android 13/14/15 boot image build script
-        if: ${{ (inputs.android_version == 'android13' || inputs.android_version == 'android14' || inputs.android_version == 'android15') && matrix.use_make == false }}
+        if: ${{ (inputs.android_version == 'android13' || inputs.android_version == 'android14' || inputs.android_version == 'android15') && matrix.build_type == 'normal' }}
         run: |
           cd bootimgs
 
@@ -581,10 +581,10 @@ jobs:
           fi
           
       - name: Upload Build Artifacts
-        if: ${{ matrix.use_make == true }}
+        if: ${{ matrix.build_type == 'make' }}
         uses: actions/upload-artifact@v4
         with:
-          name: WKSU-${{ env.KSUVER }}-${{ inputs.android_version }}-${{ inputs.kernel_version }}.${{ env.ACTUAL_SUBLEVEL || inputs.sub_level }}-${{ inputs.os_patch_level }}-${{ matrix.use_make && 'make' || 'bazel' }}
+          name: WKSU-${{ env.KSUVER }}-${{ inputs.android_version }}-${{ inputs.kernel_version }}.${{ env.ACTUAL_SUBLEVEL || inputs.sub_level }}-${{ inputs.os_patch_level }}-${{ matrix.build_type }}
           path: |
             *.zip
             *.img