File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,16 @@ jobs:
1111 - name : Install dependencies
1212 run : |
1313 sudo apt-get install build-essential wget zip gcc-mingw-w64 && \
14- wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz && \
1514 sudo apt-get remove --auto-remove golang-go && \
1615 sudo rm -rf /usr/bin/go &&\
1716 sudo rm -rf /usr/local/go && \
18- sudo tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz && \
19- echo PATH=$PATH:/usr/local/go/bin >> ~/.bashrc && \
20- source ~/.bashrc && \
21- export PATH=$PATH:/usr/local/go/bin && \
17+ wget --progress=dot:mega https://golang.org/dl/go1.17.1.linux-amd64.tar.gz -O go-linux.tar.gz && \
18+ sudo tar -zxf go-linux.tar.gz && \
19+ sudo mv go /usr/local/ && \
20+ sudo mkdir -p /go/bin /go/src /go/pkg && \
21+ export GO_HOME=/usr/local/go && \
22+ export GOPATH=/go && \
23+ export PATH=${GOPATH}/bin:${GO_HOME}/bin/:$PATH && \
2224 wget --no-check-certificate --progress=dot:mega https://github.com/wangyoucao577/assets-uploader/releases/download/v0.3.0/github-assets-uploader-v0.3.0-linux-amd64.tar.gz -O github-assets-uploader.tar.gz && \
2325 tar -zxf github-assets-uploader.tar.gz && \
2426 sudo mv github-assets-uploader /usr/sbin/ && \
You can’t perform that action at this time.
0 commit comments