@@ -58,18 +58,62 @@ jobs:
58
58
mercurial apt-transport-https mono-complete libmysqlclient \
59
59
unixodbc-dev yarn chrpath libssl-dev libxft-dev \
60
60
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
61
- snmp pollinate libpq-dev postgresql-client powershell ruby-full \
61
+ snmp pollinate libpq-dev postgresql-client powershell ruby-full rbenv ruby-dev \
62
62
sphinxsearch subversion mongodb-org microsoft-edge-stable || true
63
63
64
64
# Regex-based purges (for bulk families like mysql, php, dotnet)
65
65
sudo apt-get purge -y $(dpkg-query -W -f='${binary:Package}\n' | grep -E '^mysql|^php|^dotnet') || true
66
66
67
+ sudo apt-get purge -y $(dpkg-query -W -f='${binary:Package}\n' | grep -E '^golang|^go-') || true
68
+ sudo rm -rf /usr/local/go /usr/lib/go-*
69
+ sudo apt-get purge -y nodejs npm || true
70
+ sudo apt-get purge -y openjdk-* default-jdk default-jre || true
71
+ sudo apt-get purge -y rustc cargo || true
72
+ sudo apt-get purge -y scala sbt || true
73
+
67
74
# Clean up
68
75
sudo apt-get autoremove -y
69
76
sudo apt-get autoclean -y
70
77
echo "some packages purged"
71
78
72
79
df -h
80
+
81
+ - name : Maximize Build Space
82
+ uses : easimon/maximize-build-space@master
83
+ with :
84
+ root-reserve-mb : 1024
85
+ temp-reserve-mb : 1024
86
+ swap-size-mb : 20971520
87
+ remove-dotnet : ' true'
88
+ remove-android : ' true'
89
+ remove-haskell : ' true'
90
+ remove-codeql : ' true'
91
+ remove-docker-images : ' true'
92
+
93
+ # - name: Setup SWAP
94
+ # run: |
95
+ # sudo swapoff -a
96
+ # # Check available disk space before creating swap
97
+ # AVAILABLE_SPACE=$(df -h . | awk 'NR==2 {print $4}' | grep -o '[0-9]\+')
98
+ # if [ "$AVAILABLE_SPACE" -lt 21000 ]; then
99
+ # echo "Error: Not enough disk space for 20 GB swap file. Available: $AVAILABLE_SPACE MB"
100
+ # exit 1
101
+ # fi
102
+ # sudo fallocate -l 22G /swapfile
103
+ # sudo chmod 600 /swapfile
104
+ # sudo mkswap /swapfile
105
+ # sudo swapon -p 1 /swapfile
106
+ # echo 'vm.swappiness=1' | sudo tee -a /etc/sysctl.conf
107
+ # echo 'vm.vfs_cache_pressure=50' | sudo tee -a /etc/sysctl.conf
108
+ # echo 'vm.overcommit_memory=1' | sudo tee -a /etc/sysctl.conf
109
+ # echo 'vm.overcommit_ratio=200' | sudo tee -a /etc/sysctl.conf
110
+ # sudo sysctl -p
111
+ # free -h
112
+ # df -h
113
+
114
+ - name : Clone AnyKernel3 and Other Dependencies
115
+ run : |
116
+ echo "Cloning AnyKernel3 and other dependencies..."
73
117
74
118
# Install dependencies
75
119
echo "Installing Repo and Python"
@@ -83,10 +127,6 @@ jobs:
83
127
84
128
# Set CONFIG Environment Variable
85
129
echo "CONFIG=${{ inputs.model }}" >> $GITHUB_ENV
86
-
87
- - name : Clone AnyKernel3 and Other Dependencies
88
- run : |
89
- echo "Cloning AnyKernel3 and other dependencies..."
90
130
91
131
ANYKERNEL_BRANCH="gki-2.0"
92
132
if [[ -z "${{ inputs.susfs_branch }}" ]]; then
@@ -342,7 +382,7 @@ jobs:
342
382
sed -i 's/-dirty//' ./external/dtc/scripts/setlocalversion
343
383
sed -i 's/-dirty//' ./build/kernel/kleaf/workspace_status_stamp.py || echo "No workspace_status_stamp.py!"
344
384
345
- sed -i '/echo "LTO $LTO "/i export LTO=thin ' ./oplus/build/oplus_setup.sh
385
+ sed -i '/echo "LTO $LTO "/i export LTO=full ' ./oplus/build/oplus_setup.sh
346
386
sed -i 's/export REPACK_IMG=true/export REPACK_IMG=false/g' ./oplus/build/oplus_setup.sh
347
387
348
388
# Run perl command to modify UTS_VERSION
@@ -390,7 +430,8 @@ jobs:
390
430
else
391
431
# cd ./kernel_platform/common/
392
432
# make -j$(nproc --all) LLVM=1 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_ARM32=arm-linux-gnuabeihf- CC="$CONFIG/kernel_platform/prebuilts-master/clang/host/linux-x86/clang-r450784e/bin/clang" LD="$CONFIG/kernel_platform/prebuilts-master/clang/host/linux-x86/clang-r450784e/bin/ld.lld" HOSTCC=clang HOSTLD=ld.lld O="$CONFIG/kernel_platform/out" KCFLAGS+=-Wno-error gki_defconfig all 2>&1 | tee build_$(date +"%Y_%m_%d_%H_%M_%S").log
393
- LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
433
+ sed -i '/export EXTRA_KBUILD_ARGS="--skip abl"/a export SKIP_VENDOR_BOOT=true\nunset BUILD_VENDOR_BOOT_IMG' ./kernel_platform/oplus/build/oplus_build_kernel.sh
434
+ LTO=full ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
394
435
fi
395
436
396
437
- name : Create ZIP Files for Different Formats
0 commit comments