@@ -41,15 +41,47 @@ jobs:
4141 remove-haskell : ' true'
4242 remove-codeql : ' true'
4343 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
4476
4577 - name : Install Repo and Python
4678 run : |
4779 # Install dependencies
4880 sudo apt update
49- sudo apt install python3 python-is-python3
81+ sudo apt install -y python3 python-is-python3
5082
5183 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
5385 chmod a+rx ./git-repo/repo
5486 echo "REPO=$GITHUB_WORKSPACE/./git-repo/repo" >> $GITHUB_ENV
5587
@@ -86,11 +118,11 @@ jobs:
86118
87119 # Initialize and sync kernel source
88120 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
90122
91123 # Sync repo and apply patches
92124 $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
94126
95127 - name : Add KernelSU
96128 run : |
0 commit comments