Skip to content

Commit 310c8aa

Browse files
committed
Update OS to reduce overhead
1 parent e80008f commit 310c8aa

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
jobs:
1717
build-batch-1: # Non Bazel Builds
1818
strategy:
19+
fail-fast: false
1920
matrix:
2021
include:
2122
- model: OP11
@@ -71,8 +72,9 @@ jobs:
7172
kernel_version: ${{ matrix.kernel_version }}
7273

7374
build-batch-2:
74-
needs: build-batch-1
75+
# needs: build-batch-1
7576
strategy:
77+
fail-fast: false
7678
matrix:
7779
include:
7880
- model: OP13
@@ -98,8 +100,9 @@ jobs:
98100
kernel_version: ${{ matrix.kernel_version }}
99101

100102
build-batch-3:
101-
needs: build-batch-2
103+
# needs: build-batch-2
102104
strategy:
105+
fail-fast: false
103106
matrix:
104107
include:
105108
- model: OP12
@@ -125,8 +128,9 @@ jobs:
125128
kernel_version: ${{ matrix.kernel_version }}
126129

127130
build-batch-4:
128-
needs: build-batch-3
131+
# needs: build-batch-3
129132
strategy:
133+
fail-fast: false
130134
matrix:
131135
include:
132136
- model: OP-ACE-5

.github/workflows/build.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727

2828
jobs:
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

Comments
 (0)