chore(ci-cd): setup go environment in CI workflow
Add a setup step to export Go binary path to bashrc before configuring the proxy mirror, ensuring Go commands are available in the build environment.
This commit is contained in:
3
.github/workflows/ci-cd.yml
vendored
3
.github/workflows/ci-cd.yml
vendored
@@ -14,6 +14,9 @@ jobs:
|
|||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
run: git clone "${{ secrets.G_CLONE_URL }}" .
|
run: git clone "${{ secrets.G_CLONE_URL }}" .
|
||||||
|
|
||||||
|
- name: Setup go
|
||||||
|
run : echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrc
|
||||||
|
|
||||||
- name: Set go proxy mirror
|
- name: Set go proxy mirror
|
||||||
run: go env -w GOPROXY=https://go.iranserver.com/repository/go/ && go env -w GOSUMDB=off
|
run: go env -w GOPROXY=https://go.iranserver.com/repository/go/ && go env -w GOSUMDB=off
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user