Skip to content

Commit

Permalink
ci: Download clang manually
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Aug 8, 2023
1 parent bb6e204 commit 903925e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/gki-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ jobs:
- name: Setup kernel source
run: |
echo "Free space:"
df -h
cd $GITHUB_WORKSPACE
git clone https://gerrit.googlesource.com/git-repo
mkdir android-kernel && cd android-kernel
Expand All @@ -107,10 +105,17 @@ jobs:
sed -i 's/"${{ inputs.tag }}"/"deprecated\/${{ inputs.tag }}"/g' .repo/manifests/default.xml
cat .repo/manifests/default.xml
fi
CLANG_REV=$(grep prebuilts/clang/host/linux-x86 default.xml | sed -n 's/.*revision="\([^"]*\)".*/\1/p')
if [ "$CLANG_REV" != "" ]; then
echo "Fuck stupid Google clone whole clang!!!"
wget -o clang.tar.gz https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+archive/$CLANG_REV.tar.gz
mkdir -p prebuilts/clang/host/linux-x86
tar -xvf clang.tar.gz -C prebuilts/clang/host/linux-x86
sed -i '/prebuilts\/clang\/host\/linux-x86/d' .repo/manifests/default.xml
fi
sed -i '/prebuilts\/ndk-*/d' .repo/manifests/default.xml
sed -i '/prebuilts\/jdk/d' .repo/manifests/default.xml
../git-repo/repo sync -j$(nproc --all)
ls -d prebuilts/clang/host/linux-x86/clang-r* | grep -v $(sed -n 's/^CLANG_VERSION=//p' common/build.config.constants) | xargs rm -rf
../git-repo/repo sync -c -j$(nproc --all)
- name: Setup KernelSU
env:
Expand Down

0 comments on commit 903925e

Please sign in to comment.