Skip to content

Commit 6bea6ab

Browse files
authored
Update main.yml
1 parent 3282b76 commit 6bea6ab

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- "13.0"
77

88
env:
9-
CheckOut_DIR: /home/runner/work/kernel_xiaomi_raphael/kernel_xiaomi_raphael
9+
CheckOut_DIR: /home/runner/work/kernel_xiaomi_raphael/kernel_xiaomi_raphael
10+
AnyKernel: /home/runner/work/kernel_xiaomi_raphael/AnyKernel
1011

1112
jobs:
1213
KSUForRaphael:
@@ -23,7 +24,7 @@ jobs:
2324
git clone https://gitlab.com/crdroidandroid/android_prebuilts_clang_host_linux-x86_clang-r445002 --depth=1 --single-branch --no-tags -b 12.0 ~/clang
2425
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b android-10.0.0_r47 --depth=1 --single-branch --no-tags ~/aarch64-linux-android-4.9
2526
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9 -b android-10.0.0_r47 --depth=1 --single-branch --no-tags ~/arm-linux-androideabi-4.9
26-
git clone https://github.com/SoDebug/AnyKernel3.git
27+
git clone https://github.com/SoDebug/AnyKernel3.git ${{ env.AnyKernel }}
2728
2829
- name: CheckOut Kernel Tree
2930
uses: actions/[email protected]
@@ -57,10 +58,9 @@ jobs:
5758
export CROSS_COMPILE=aarch64-linux-android-
5859
export CROSS_COMPILE_ARM32=arm-linux-androideabi-
5960
output_dir=out
60-
pushd kernel_xiaomi_raphael
6161
make LLVM=1 LLVM_IAS=1 CC="ccache clang" raphael_defconfig
6262
make LLVM=1 LLVM_IAS=1 CC="ccache clang" -j$(grep -c ^processor /proc/cpuinfo)
63-
popd
63+
6464
6565
- name: Creating Config Info
6666
run: |
@@ -74,16 +74,14 @@ jobs:
7474
7575
- name: Packaging the Kernel
7676
run: |
77-
cp -v kernel_xiaomi_raphael/out/arch/arm64/boot/Image.gz \
78-
AnyKernel3/
79-
pushd AnyKernel3
80-
7z a -mx9 ../Raphael-Kernel_KSU_Manully_SA13.zip *
81-
popd
82-
77+
cp -v ${{ env.CheckOut_DIR }}/out/arch/arm64/boot/Image.gz ${{ env.AnyKernel }} &&
78+
cd ${{ env.AnyKernel }} &&
79+
7z a -mx9 Raphael-Kernel_KSU_Manully_SA13.zip *
80+
8381
- name: Uploading Kernel Package to GH-Release
8482
uses: ncipollo/[email protected]
8583
with:
86-
artifacts: Raphael-Kernel_KSU_Manully_SA13.zip
84+
artifacts: ${{env.AnyKernel }}/Raphael-Kernel_KSU_Manully_SA13.zip
8785
name: " Raphael-Kernel_KSU_Manully_SA13"
8886
tag: " ${{ github.run_number }}_Raphael-Kernel_KSU_Manully_SA13"
8987
bodyFile: "INFO.txt"

0 commit comments

Comments
 (0)