Skip to content

Commit b457b8f

Browse files
committed
Test without Maximize
1 parent 310c8aa commit b457b8f

File tree

2 files changed

+36
-49
lines changed

2 files changed

+36
-49
lines changed

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

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -89,22 +89,6 @@ jobs:
8989
manifest: JiuGeFaCai_oneplus_ace5_pro_v.xml
9090
android_version: android15
9191
kernel_version: "6.6"
92-
uses: ./.github/workflows/build.yml
93-
secrets: inherit
94-
with:
95-
model: ${{ matrix.model }}
96-
soc: ${{ matrix.soc }}
97-
branch: ${{ matrix.branch }}
98-
manifest: ${{ matrix.manifest }}
99-
android_version: ${{ matrix.android_version }}
100-
kernel_version: ${{ matrix.kernel_version }}
101-
102-
build-batch-3:
103-
# needs: build-batch-2
104-
strategy:
105-
fail-fast: false
106-
matrix:
107-
include:
10892
- model: OP12
10993
soc: pineapple
11094
branch: oneplus/sm8650
@@ -117,22 +101,6 @@ jobs:
117101
manifest: oneplus_13r.xml
118102
android_version: android14
119103
kernel_version: "6.1"
120-
uses: ./.github/workflows/build.yml
121-
secrets: inherit
122-
with:
123-
model: ${{ matrix.model }}
124-
soc: ${{ matrix.soc }}
125-
branch: ${{ matrix.branch }}
126-
manifest: ${{ matrix.manifest }}
127-
android_version: ${{ matrix.android_version }}
128-
kernel_version: ${{ matrix.kernel_version }}
129-
130-
build-batch-4:
131-
# needs: build-batch-3
132-
strategy:
133-
fail-fast: false
134-
matrix:
135-
include:
136104
- model: OP-ACE-5
137105
soc: pineapple
138106
branch: oneplus/sm8650
@@ -159,8 +127,6 @@ jobs:
159127
needs:
160128
- build-batch-1
161129
- build-batch-2
162-
- build-batch-3
163-
- build-batch-4
164130
runs-on: ubuntu-latest
165131
if: ${{ inputs.make_release }}
166132
env:

.github/workflows/build.yml

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,47 @@ jobs:
3030
runs-on: ubuntu-20.04
3131

3232
steps:
33-
- name: Maximize build space
34-
uses: easimon/maximize-build-space@master
35-
with:
36-
root-reserve-mb: 8192
37-
temp-reserve-mb: 2048
38-
swap-size-mb: 8192
39-
remove-dotnet: 'true'
40-
remove-android: 'true'
41-
remove-haskell: 'true'
42-
remove-codeql: 'true'
43-
remove-docker-images: 'true'
33+
- name: Setup System
34+
run: |
35+
export DEBIAN_FRONTEND=noninteractive
36+
echo "DEBIAN_FRONTEND=noninteractive" >> $GITHUB_ENV
37+
38+
df -h
39+
40+
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
41+
sudo docker image prune --all --force
42+
echo "some directories deleted"
43+
44+
# Remove large unwanted packages
45+
sudo apt-get purge -y \
46+
aria2 ansible azure-cli shellcheck rpm xorriso zsync \
47+
esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable \
48+
google-cloud-sdk imagemagick \
49+
libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional kubectl \
50+
mercurial apt-transport-https mono-complete libmysqlclient \
51+
unixodbc-dev yarn chrpath libssl-dev libxft-dev \
52+
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
53+
snmp pollinate libpq-dev postgresql-client powershell ruby-full \
54+
sphinxsearch subversion mongodb-org microsoft-edge-stable || true
55+
56+
# Regex-based purges (for bulk families like mysql, php, dotnet)
57+
sudo apt-get purge -y $(dpkg-query -W -f='${binary:Package}\n' | grep -E '^mysql|^php|^dotnet') || true
58+
59+
# Clean up
60+
sudo apt-get autoremove -y
61+
sudo apt-get autoclean -y
62+
echo "some packages purged"
63+
64+
df -h
4465
4566
- name: Install Repo and Python
4667
run: |
4768
# Install dependencies
4869
sudo apt update
49-
sudo apt install python3 python-is-python3
70+
sudo apt install -y python3 python-is-python3
5071
5172
mkdir -p ./git-repo
52-
curl https://storage.googleapis.com/git-repo-downloads/repo > ./git-repo/repo
73+
curl -sSL https://storage.googleapis.com/git-repo-downloads/repo > ./git-repo/repo
5374
chmod a+rx ./git-repo/repo
5475
echo "REPO=$GITHUB_WORKSPACE/./git-repo/repo" >> $GITHUB_ENV
5576
@@ -86,11 +107,11 @@ jobs:
86107
87108
# Initialize and sync kernel source
88109
echo "Initializing and syncing kernel source..."
89-
$REPO init -u https://github.com/OnePlusOSS/kernel_manifest.git -b ${{ inputs.branch }} -m ${{ inputs.manifest }} --repo-rev=v2.16 --depth=1
110+
$REPO init -u https://github.com/OnePlusOSS/kernel_manifest.git -b ${{ inputs.branch }} -m ${{ inputs.manifest }} --repo-rev=v2.16 --depth=1 --no-clone-bundle --no-tags
90111
91112
# Sync repo and apply patches
92113
$REPO --version
93-
$REPO --trace sync -c -j$(nproc --all) --no-tags --fail-fast
114+
$REPO --trace sync -c --no-clone-bundle --no-tags --optimized-fetch -j$(nproc --all) --fail-fast
94115
95116
- name: Add KernelSU
96117
run: |

0 commit comments

Comments
 (0)