|
|
@@ -57,19 +57,6 @@ jobs:
|
|
|
git clone https://github.com/WildKernels/AnyKernel3.git -b "$ANYKERNEL_BRANCH"
|
|
|
git clone https://github.com/WildKernels/kernel_patches.git
|
|
|
git clone https://gitlab.com/simonpunk/susfs4ksu.git -b "$SUSFS_BRANCH"
|
|
|
-
|
|
|
- cd susfs4ksu
|
|
|
- if [[ "$SUSFS_BRANCH" == "gki-android13-5.15" ]]; then
|
|
|
- git checkout "f20b72ca8c5214275af2cd969c58d8054a761353"
|
|
|
- elif [[ "$SUSFS_BRANCH" == "gki-android14-6.1" ]]; then
|
|
|
- git checkout "eab9a5ed3184c8f0c8ae1a2eb1863d1f0ae7fac3"
|
|
|
- elif [[ "$SUSFS_BRANCH" == "gki-android15-6.6" ]]; then
|
|
|
- git checkout "f17b8be07a95217d89a76cf527f9e8bd937539d7"
|
|
|
- elif [[ "$SUSFS_BRANCH" == "gki-android12-5.10" ]]; then
|
|
|
- git checkout "44ba5277006c088caeec4a760304e756ed614cde"
|
|
|
- elif [[ "$SUSFS_BRANCH" == "gki-android13-5.10" ]]; then
|
|
|
- git checkout "27c47e0f172191faab8da61ab03636a131f736c0"
|
|
|
- fi
|
|
|
|
|
|
- name: Clone Kernel Source
|
|
|
run: |
|
|
|
@@ -325,8 +312,14 @@ jobs:
|
|
|
- name: Set file name
|
|
|
run: |
|
|
|
ARTIFACT_BASE="${{ inputs.branch }}-${{ inputs.kernel_version }}-${{ inputs.android_version }}"
|
|
|
+
|
|
|
+ # This gives: KSU33208-branch-xxx-xxx
|
|
|
+ FILE_NAME="KSU${KSU_VERSION}-${ARTIFACT_BASE}"
|
|
|
+
|
|
|
echo "ARTIFACT_BASE=$ARTIFACT_BASE" >> $GITHUB_ENV
|
|
|
- echo "FILE_NAME=$ARTIFACT_BASE" >> $GITHUB_ENV
|
|
|
+ echo "FILE_NAME=$FILE_NAME" >> $GITHUB_ENV
|
|
|
+
|
|
|
+ echo "✅ Final artifact name: $FILE_NAME"
|
|
|
|
|
|
- name: Build
|
|
|
run : |
|
|
|
@@ -334,7 +327,7 @@ jobs:
|
|
|
set -x
|
|
|
cd "$CONFIG"
|
|
|
echo "Building the kernel..."
|
|
|
- if [[ "${{ inputs.branch }}" == "SM-S928B-Oneui7" || "${{ inputs.branch }}" == "SM-S928B-Oneui8" || "${{ inputs.branch }}" == "SM-S938B-Oneui7" ]]; then
|
|
|
+ if [[ "${{ inputs.branch }}" == "SM-S928B-Oneui7" || "${{ inputs.branch }}" == "SM-S928B-Oneui8" || "${{ inputs.branch }}" == "SM-S938B-Oneui7" || "${{ inputs.branch }}" == "SM-S931B-Oneui8" ]]; then
|
|
|
chmod +x build_kernel_GKI.sh
|
|
|
./build_kernel_GKI.sh || true
|
|
|
elif [[ "${{ inputs.branch }}" == "SM-X916B" || "${{ inputs.branch }}" == "SM-F946N-Oneui7" || "${{ inputs.branch }}" == "SM-S916B-Oneui8" || "${{ inputs.branch }}" == "SM-S918B-Oneui8" || "${{ inputs.branch }}" == "SM-F946B-Oneui8" || "${{ inputs.branch }}" == "SM-S901E-Oneui8" ]]; then
|
|
|
@@ -372,7 +365,7 @@ jobs:
|
|
|
|
|
|
if [[ "${{ inputs.branch }}" == "SM-S928B-Oneui7" || "${{ inputs.branch }}" == "SM-S928B-Oneui8" ]]; then
|
|
|
cp ./kernel_platform/sec/dist/Image "$ANYKERNEL3/Image"
|
|
|
- elif [[ "${{ inputs.branch }}" == "SM-S938B-Oneui7" ]]; then
|
|
|
+ elif [[ "${{ inputs.branch }}" == "SM-S938B-Oneui7" || "${{ inputs.branch }}" == "SM-S931B-Oneui8" ]]; then
|
|
|
cp ./kernel_platform/gki/dist/Image "$ANYKERNEL3/Image"
|
|
|
elif [[ -f ./$CONFIG/bazel-bin/common/kernel_aarch64/Image ]]; then
|
|
|
cp ./$CONFIG/bazel-bin/common/kernel_aarch64/Image "$ANYKERNEL3/Image"
|