2727
2828jobs :
2929 build-kernel-oneplus-kernelsu-susfs :
30- runs-on : ubuntu-latest
30+ runs-on : ubuntu-20.04
3131
3232 steps :
3333 - name : Maximize build space
@@ -40,12 +40,18 @@ jobs:
4040 remove-android : ' true'
4141 remove-haskell : ' true'
4242 remove-codeql : ' true'
43+ remove-docker-images : ' true'
4344
4445 - name : Install Repo and Python
4546 run : |
4647 # Install dependencies
4748 sudo apt update
48- sudo apt install repo python3 python-is-python3
49+ sudo apt install python3 python-is-python3
50+
51+ mkdir -p ./git-repo
52+ curl https://storage.googleapis.com/git-repo-downloads/repo > ./git-repo/repo
53+ chmod a+rx ./git-repo/repo
54+ echo "REPO=$GITHUB_WORKSPACE/./git-repo/repo" >> $GITHUB_ENV
4955
5056 - name : Set CONFIG Environment Variable
5157 run : |
@@ -80,11 +86,11 @@ jobs:
8086
8187 # Initialize and sync kernel source
8288 echo "Initializing and syncing kernel source..."
83- repo init -u https://github.com/OnePlusOSS/kernel_manifest.git -b ${{ inputs.branch }} -m ${{ inputs.manifest }} --repo-rev=v2.16 --depth=1
89+ $REPO init -u https://github.com/OnePlusOSS/kernel_manifest.git -b ${{ inputs.branch }} -m ${{ inputs.manifest }} --repo-rev=v2.16 --depth=1
8490
8591 # Sync repo and apply patches
86- repo --version
87- repo --trace sync -c -j$(nproc --all) --no-tags --fail-fast
92+ $REPO --version
93+ $REPO --trace sync -c -j$(nproc --all) --no-tags --fail-fast
8894
8995 - name : Add KernelSU
9096 run : |
@@ -211,6 +217,9 @@ jobs:
211217 cd "$CONFIG"
212218
213219 echo "Building the kernel..."
220+ # Clear Cache
221+ sudo sh -c 'sync; echo 3 > /proc/sys/vm/drop_caches'
222+
214223 rm ./kernel_platform/common/android/abi_gki_protected_exports_* || echo "No protected exports!"
215224 rm ./kernel_platform/msm-kernel/android/abi_gki_protected_exports_* || echo "No protected exports!"
216225
0 commit comments