generated from deepin-community/template-repository-main
上传文件至 .github/workflows
Some checks failed
Build and Package Golang / build (push) Failing after 2m52s
Some checks failed
Build and Package Golang / build (push) Failing after 2m52s
This commit is contained in:
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -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 ..
|
||||
|
Reference in New Issue
Block a user