Skip to content

Commit d94b301

Browse files
committed
Test Vendor boot disable and lto full
1 parent 38d4bcc commit d94b301

File tree

2 files changed

+61
-8
lines changed

2 files changed

+61
-8
lines changed

.github/workflows/build-kernel-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
options:
2020
- stable
2121
- next
22-
default: stable
22+
default: next
2323
susfs_branch:
2424
required: true
2525
type: string
@@ -38,6 +38,12 @@ jobs:
3838
manifest: oneplus_11_v.xml
3939
android_version: android13
4040
kernel_version: "5.15"
41+
- model: OP11u
42+
soc: kalama
43+
branch: oneplus/sm8550
44+
manifest: oneplus_11_u.xml
45+
android_version: android13
46+
kernel_version: "5.15"
4147
# - model: OP11r
4248
# soc: waipio
4349
# branch: oneplus/sm8475

.github/workflows/build.yml

Lines changed: 54 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@ jobs:
4545
4646
df -h
4747
48+
sudo systemctl stop docker.socket
49+
sudo systemctl stop docker.service
50+
4851
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /usr/local/.ghcup /opt/hostedtoolcache/CodeQL /usr/local/share/powershell /usr/share/swift || true
52+
sudo docker rm -f $(sudo docker ps -aq) || true
4953
sudo docker image prune --all --force
54+
sudo docker system prune -a --volumes -f
55+
sudo rm -rf /var/lib/docker
5056
echo "some directories deleted"
5157
5258
# Remove large unwanted packages
@@ -58,18 +64,62 @@ jobs:
5864
mercurial apt-transport-https mono-complete libmysqlclient \
5965
unixodbc-dev yarn chrpath libssl-dev libxft-dev \
6066
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
61-
snmp pollinate libpq-dev postgresql-client powershell ruby-full \
67+
snmp pollinate libpq-dev postgresql-client powershell ruby-full rbenv ruby-dev \
6268
sphinxsearch subversion mongodb-org microsoft-edge-stable || true
6369
6470
# Regex-based purges (for bulk families like mysql, php, dotnet)
6571
sudo apt-get purge -y $(dpkg-query -W -f='${binary:Package}\n' | grep -E '^mysql|^php|^dotnet') || true
6672
73+
sudo apt-get purge -y $(dpkg-query -W -f='${binary:Package}\n' | grep -E '^golang|^go-') || true
74+
sudo rm -rf /usr/local/go /usr/lib/go-*
75+
sudo apt-get purge -y nodejs npm || true
76+
sudo apt-get purge -y openjdk-* default-jdk default-jre || true
77+
sudo apt-get purge -y rustc cargo || true
78+
sudo apt-get purge -y scala sbt || true
79+
6780
# Clean up
6881
sudo apt-get autoremove -y
6982
sudo apt-get autoclean -y
7083
echo "some packages purged"
7184
7285
df -h
86+
87+
- name: Maximize Build Space
88+
uses: easimon/maximize-build-space@master
89+
with:
90+
root-reserve-mb: 1024
91+
temp-reserve-mb: 1024
92+
swap-size-mb: 20971520
93+
remove-dotnet: 'true'
94+
remove-android: 'true'
95+
remove-haskell: 'true'
96+
remove-codeql: 'true'
97+
remove-docker-images: 'true'
98+
99+
# - name: Setup SWAP
100+
# run: |
101+
# sudo swapoff -a
102+
# # Check available disk space before creating swap
103+
# AVAILABLE_SPACE=$(df -h . | awk 'NR==2 {print $4}' | grep -o '[0-9]\+')
104+
# if [ "$AVAILABLE_SPACE" -lt 21000 ]; then
105+
# echo "Error: Not enough disk space for 20 GB swap file. Available: $AVAILABLE_SPACE MB"
106+
# exit 1
107+
# fi
108+
# sudo fallocate -l 22G /swapfile
109+
# sudo chmod 600 /swapfile
110+
# sudo mkswap /swapfile
111+
# sudo swapon -p 1 /swapfile
112+
# echo 'vm.swappiness=1' | sudo tee -a /etc/sysctl.conf
113+
# echo 'vm.vfs_cache_pressure=50' | sudo tee -a /etc/sysctl.conf
114+
# echo 'vm.overcommit_memory=1' | sudo tee -a /etc/sysctl.conf
115+
# echo 'vm.overcommit_ratio=200' | sudo tee -a /etc/sysctl.conf
116+
# sudo sysctl -p
117+
# free -h
118+
# df -h
119+
120+
- name: Clone AnyKernel3 and Other Dependencies
121+
run: |
122+
echo "Cloning AnyKernel3 and other dependencies..."
73123
74124
# Install dependencies
75125
echo "Installing Repo and Python"
@@ -83,10 +133,6 @@ jobs:
83133
84134
# Set CONFIG Environment Variable
85135
echo "CONFIG=${{ inputs.model }}" >> $GITHUB_ENV
86-
87-
- name: Clone AnyKernel3 and Other Dependencies
88-
run: |
89-
echo "Cloning AnyKernel3 and other dependencies..."
90136
91137
ANYKERNEL_BRANCH="gki-2.0"
92138
if [[ -z "${{ inputs.susfs_branch }}" ]]; then
@@ -342,7 +388,7 @@ jobs:
342388
sed -i 's/-dirty//' ./external/dtc/scripts/setlocalversion
343389
sed -i 's/-dirty//' ./build/kernel/kleaf/workspace_status_stamp.py || echo "No workspace_status_stamp.py!"
344390
345-
sed -i '/echo "LTO $LTO "/i export LTO=thin' ./oplus/build/oplus_setup.sh
391+
sed -i '/echo "LTO $LTO "/i export LTO=full' ./oplus/build/oplus_setup.sh
346392
sed -i 's/export REPACK_IMG=true/export REPACK_IMG=false/g' ./oplus/build/oplus_setup.sh
347393
348394
# Run perl command to modify UTS_VERSION
@@ -390,7 +436,8 @@ jobs:
390436
else
391437
# cd ./kernel_platform/common/
392438
# 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"
439+
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
440+
LTO=full ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
394441
fi
395442
396443
- name: Create ZIP Files for Different Formats

0 commit comments

Comments
 (0)