@@ -41,15 +41,47 @@ jobs:
41
41
remove-haskell : ' true'
42
42
remove-codeql : ' true'
43
43
remove-docker-images : ' true'
44
+ # - name: Setup System
45
+ # run: |
46
+ # export DEBIAN_FRONTEND=noninteractive
47
+ # echo "DEBIAN_FRONTEND=noninteractive" >> $GITHUB_ENV
48
+
49
+ # df -h
50
+
51
+ # 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
52
+ # sudo docker image prune --all --force
53
+ # echo "some directories deleted"
54
+
55
+ # # Remove large unwanted packages
56
+ # sudo apt-get purge -y \
57
+ # aria2 ansible azure-cli shellcheck rpm xorriso zsync \
58
+ # esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable \
59
+ # google-cloud-sdk imagemagick \
60
+ # libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional kubectl \
61
+ # mercurial apt-transport-https mono-complete libmysqlclient \
62
+ # unixodbc-dev yarn chrpath libssl-dev libxft-dev \
63
+ # libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
64
+ # snmp pollinate libpq-dev postgresql-client powershell ruby-full \
65
+ # sphinxsearch subversion mongodb-org microsoft-edge-stable || true
66
+
67
+ # # Regex-based purges (for bulk families like mysql, php, dotnet)
68
+ # sudo apt-get purge -y $(dpkg-query -W -f='${binary:Package}\n' | grep -E '^mysql|^php|^dotnet') || true
69
+
70
+ # # Clean up
71
+ # sudo apt-get autoremove -y
72
+ # sudo apt-get autoclean -y
73
+ # echo "some packages purged"
74
+
75
+ # df -h
44
76
45
77
- name : Install Repo and Python
46
78
run : |
47
79
# Install dependencies
48
80
sudo apt update
49
- sudo apt install python3 python-is-python3
81
+ sudo apt install -y python3 python-is-python3
50
82
51
83
mkdir -p ./git-repo
52
- curl https://storage.googleapis.com/git-repo-downloads/repo > ./git-repo/repo
84
+ curl -sSL https://storage.googleapis.com/git-repo-downloads/repo > ./git-repo/repo
53
85
chmod a+rx ./git-repo/repo
54
86
echo "REPO=$GITHUB_WORKSPACE/./git-repo/repo" >> $GITHUB_ENV
55
87
@@ -86,11 +118,11 @@ jobs:
86
118
87
119
# Initialize and sync kernel source
88
120
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
121
+ $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
90
122
91
123
# Sync repo and apply patches
92
124
$REPO --version
93
- $REPO --trace sync -c -j$(nproc --all) --no-tags --fail-fast
125
+ $REPO --trace sync -c --no-clone-bundle --no-tags --optimized-fetch - j$(nproc --all) --fail-fast
94
126
95
127
- name : Add KernelSU
96
128
run : |
0 commit comments