27
27
28
28
jobs :
29
29
build-kernel-oneplus-kernelsu-susfs :
30
- runs-on : ubuntu-latest
30
+ runs-on : ubuntu-20.04
31
31
32
32
steps :
33
33
- name : Maximize build space
@@ -40,12 +40,18 @@ jobs:
40
40
remove-android : ' true'
41
41
remove-haskell : ' true'
42
42
remove-codeql : ' true'
43
+ remove-docker-images : ' true'
43
44
44
45
- name : Install Repo and Python
45
46
run : |
46
47
# Install dependencies
47
48
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
49
55
50
56
- name : Set CONFIG Environment Variable
51
57
run : |
@@ -80,11 +86,11 @@ jobs:
80
86
81
87
# Initialize and sync kernel source
82
88
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
84
90
85
91
# 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
88
94
89
95
- name : Add KernelSU
90
96
run : |
@@ -211,6 +217,9 @@ jobs:
211
217
cd "$CONFIG"
212
218
213
219
echo "Building the kernel..."
220
+ # Clear Cache
221
+ sudo sh -c 'sync; echo 3 > /proc/sys/vm/drop_caches'
222
+
214
223
rm ./kernel_platform/common/android/abi_gki_protected_exports_* || echo "No protected exports!"
215
224
rm ./kernel_platform/msm-kernel/android/abi_gki_protected_exports_* || echo "No protected exports!"
216
225
0 commit comments