Skip to content

Commit

Permalink
use gotip from phuslu/go
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Jun 4, 2024
1 parent 28ae42a commit 924348b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ jobs:
if: matrix.go-version == 'tip'
run: |
set -ex
commit=$(git ls-remote https://github.com/golang/go.git HEAD | awk '{print $1}')
curl -LOJ https://storage.googleapis.com/go-build-snap/go/linux-amd64/${commit}.tar.gz
curl --head https://github.com/phuslu/go/releases/download/v0.0.0/gotip.linux-amd64.tar.xz
sleep 1
curl -LOJ https://github.com/phuslu/go/releases/download/v0.0.0/gotip.linux-amd64.tar.xz
rm -rf /usr/local/go
sudo tar xzf ${commit}.tar.gz -C /usr/local
sudo tar xJf gotip.linux-amd64.tar.xz -C /usr/local
sudo ln -sf /usr/local/go/bin/go /usr/bin/go
go version
- uses: actions/checkout@v4
Expand Down

0 comments on commit 924348b

Please sign in to comment.