Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
under CI env, download & extract tgz simultaneously
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-bilibili committed Feb 10, 2022
1 parent 3ba1b03 commit 5b6f6b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ fi
cd build
if [ ! -e go ]
then
curl "https://dl.google.com/go/go$GOLANG_VERSION.linux-amd64.tar.gz" -L -o go.tar.gz
tar -zxvf go.tar.gz
curl "https://dl.google.com/go/go$GOLANG_VERSION.linux-amd64.tar.gz" -L | tar -zx || exit $?
cd go
patch -p1 -r . < ../../go.patch
cd ..
Expand All @@ -21,8 +20,7 @@ export GOROOT=$PWD/go
go version
if [ ! -e gost ]
then
curl "https://github.com/ginuerzh/gost/archive/v$GOST_VERSION.tar.gz" -L -o gost.tar.gz
tar -zxvf gost.tar.gz
curl "https://github.com/ginuerzh/gost/archive/v$GOST_VERSION.tar.gz" -L | tar -zx || exit $?
mv gost-$GOST_VERSION gost
cd gost
patch -p1 -r . < ../../gost.patch
Expand Down

0 comments on commit 5b6f6b9

Please sign in to comment.