Skip to content

Commit b5063a5

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

File tree

2 files changed

+48
-49
lines changed

2 files changed

+48
-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: 48 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,59 @@ 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: 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'
44+
45+
- name: Setup System
46+
run: |
47+
export DEBIAN_FRONTEND=noninteractive
48+
echo "DEBIAN_FRONTEND=noninteractive" >> $GITHUB_ENV
49+
50+
df -h
51+
52+
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
53+
sudo docker image prune --all --force
54+
echo "some directories deleted"
55+
56+
# Remove large unwanted packages
57+
sudo apt-get purge -y \
58+
aria2 ansible azure-cli shellcheck rpm xorriso zsync \
59+
esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable \
60+
google-cloud-sdk imagemagick \
61+
libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional kubectl \
62+
mercurial apt-transport-https mono-complete libmysqlclient \
63+
unixodbc-dev yarn chrpath libssl-dev libxft-dev \
64+
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
65+
snmp pollinate libpq-dev postgresql-client powershell ruby-full \
66+
sphinxsearch subversion mongodb-org microsoft-edge-stable || true
67+
68+
# Regex-based purges (for bulk families like mysql, php, dotnet)
69+
sudo apt-get purge -y $(dpkg-query -W -f='${binary:Package}\n' | grep -E '^mysql|^php|^dotnet') || true
70+
71+
# Clean up
72+
sudo apt-get autoremove -y
73+
sudo apt-get autoclean -y
74+
echo "some packages purged"
75+
76+
df -h
4477
4578
- name: Install Repo and Python
4679
run: |
4780
# Install dependencies
4881
sudo apt update
49-
sudo apt install python3 python-is-python3
82+
sudo apt install -y python3 python-is-python3
5083
5184
mkdir -p ./git-repo
52-
curl https://storage.googleapis.com/git-repo-downloads/repo > ./git-repo/repo
85+
curl -sSL https://storage.googleapis.com/git-repo-downloads/repo > ./git-repo/repo
5386
chmod a+rx ./git-repo/repo
5487
echo "REPO=$GITHUB_WORKSPACE/./git-repo/repo" >> $GITHUB_ENV
5588
@@ -86,11 +119,11 @@ jobs:
86119
87120
# Initialize and sync kernel source
88121
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
122+
$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
90123
91124
# Sync repo and apply patches
92125
$REPO --version
93-
$REPO --trace sync -c -j$(nproc --all) --no-tags --fail-fast
126+
$REPO --trace sync -c --no-clone-bundle --no-tags --optimized-fetch -j$(nproc --all) --fail-fast
94127
95128
- name: Add KernelSU
96129
run: |

0 commit comments

Comments
 (0)