@@ -25,44 +25,37 @@ jobs:
2525 git-core gnupg flex bison build-essential zip curl \
2626 zlib1g-dev libc6-dev-i386 x11proto-core-dev libx11-dev \
2727 lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc \
28- unzip fontconfig python3 python3-pip lld llvm
28+ unzip fontconfig python3 lld
2929
30- - name : Setup Toolchain
30+ - name : Link Toolchain
3131 run : |
32+ # Create the directory structure the script expects
3233 mkdir -p toolchain
33- echo "Downloading Clang r416183b..."
34- # Clone only the necessary clang version to save time and space
35- git clone https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86 --depth=1 -b master toolchain/clang-temp
3634
37- # Move the specific version to the path expected by build.sh
38- mv toolchain/clang-temp/clang-r416183b toolchain/
39- rm -rf toolchain/clang-temp
35+ # IF the toolchain is in your repo under a different name, link it:
36+ # ln -s $(pwd)/my_actual_clang_folder $(pwd)/toolchain/clang-r416183b
4037
41- # Verify existence of the tool that caused the previous crash
42- if [ -f "toolchain/clang-r416183b/bin/llvm-readelf" ]; then
43- echo "Toolchain path verified: toolchain/clang-r416183b/bin/llvm-readelf"
44- else
45- echo "Error: Toolchain download failed or path is incorrect."
46- exit 1
47- fi
38+ # IF you want to use the system's LLVM/Clang (pre-installed on Ubuntu runners):
39+ # We symlink the system binaries into the folder the script expects
40+ mkdir -p toolchain/clang-r416183b/bin
41+ ln -s /usr/bin/llvm-readelf toolchain/clang-r416183b/bin/llvm-readelf
42+ ln -s /usr/bin/clang toolchain/clang-r416183b/bin/clang
43+ ln -s /usr/bin/ld.lld toolchain/clang-r416183b/bin/ld.lld
44+
45+ echo "Symlinks created to redirect script to system tools."
4846
4947 - name : Run Build Script
5048 run : |
51- # 1. Fix the ' strict-prototypes' error by downgrading it to a warning
49+ # Suppress the strict-prototypes error
5250 export CFLAGS="$CFLAGS -Wno-error=strict-prototypes -Wno-strict-prototypes"
5351 export CPPFLAGS="$CPPFLAGS -Wno-error=strict-prototypes -Wno-strict-prototypes"
5452
55- # 2. Make script executable
5653 chmod +x build.sh
57-
58- # 3. Execute build
5954 ./build.sh -m all -k y -s y
6055
6156 - name : Upload Kernel Zips
6257 if : always()
6358 uses : actions/upload-artifact@v4
6459 with :
6560 name : Samsung-Exynos9820-Kernels
66- path : |
67- build/out/**/*.zip
68- if-no-files-found : warn
61+ path : build/out/**/*.zip
0 commit comments