Skip to content

Commit

Permalink
CI: Use wget when downloading tar.gz from github (xiaoleGun#38)
Browse files Browse the repository at this point in the history
Co-authored-by: 澪洛依 <91936347+Ling-LuoYi@users.noreply.github.com>
Signed-off-by: xiaoleGun <1592501605@qq.com>
  • Loading branch information
xiaoleGun and RinLoYi authored May 21, 2023
1 parent 8247a38 commit bddc4a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
if [[ ${{ env.CUSTOM_CLANG }} =~ github ]]; then
git clone ${{ env.CUSTOM_CLANG }} -b ${{ env.CUSTOM_CLANG_BRANCH }} clang-aosp --depth=1
if [[ ${{ env.CUSTOM_CLANG }} == *'.tar.gz' ]]; then
wget -O clang.tar.gz ${{ env.CUSTOM_CLANG }}
mkdir clang-aosp
tar -C clang-aosp/ -zxvf clang.tar.gz
else
git clone ${{ env.CUSTOM_CLANG }} -b ${{ env.CUSTOM_CLANG_BRANCH }} clang-aosp --depth=1
fi
else
wget -O clang.zip ${{ env.CUSTOM_CLANG }}
mkdir clang-aosp
Expand Down

0 comments on commit bddc4a8

Please sign in to comment.