上传文件至 .github/workflows
Some checks failed
Build and Package Golang / build (push) Failing after 2m52s

This commit is contained in:
2024-12-02 19:19:06 +08:00
parent 7a41aacf69
commit 026c0081ff

View File

@ -21,10 +21,15 @@ jobs:
sudo apt-get update
sudo apt-get install -y debhelper dh-golang build-essential wget
- name: Download Go Bootstrap
run: |
wget https://go.dev/dl/go1.21.1.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz
mv /usr/local/go /usr/local/go-bootstrap
- name: Compile Golang from source
run: |
export GOROOT_BOOTSTRAP=$(pwd)/go-bootstrap # 临时 GOROOT
mkdir -p $GOROOT_BOOTSTRAP
export GOROOT_BOOTSTRAP=/usr/local/go-bootstrap
cd src
./make.bash
cd ..