Skip to content

Commit

Permalink
fix: upgrade golang version to 1.17 of github action build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sloaix committed Nov 11, 2021
1 parent e494196 commit f0f8acd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ jobs:
- name: Set up golang
uses: actions/setup-go@v2
with:
go-version: "^1.16.5"
- run: go env -w GO111MODULE=on
go-version: "^1.17"
- run: |
go env -w GO111MODULE=on
go version
# 配置Node环境
- uses: actions/setup-node@v2
Expand All @@ -30,7 +32,7 @@ jobs:

# 列出产物
- name: List output
run: du -ah ./output
run: ls -lh ./output

# 上传构建产物
- uses: actions/upload-artifact@v2
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ jobs:
- name: Set up golang
uses: actions/setup-go@v2
with:
go-version: "^1.16.5"
- run: go env -w GO111MODULE=on
go-version: "^1.17"
- run: |
go env -w GO111MODULE=on
go version
# 配置Node环境
- uses: actions/setup-node@v2
Expand All @@ -30,7 +32,7 @@ jobs:

# 列出产物
- name: List output
run: du -ah ./output
run: ls -lh ./output

# 检查push操作触发的是否是master分支,只在master执行后续的release操作
- name: Only release in the main branch
Expand Down

0 comments on commit f0f8acd

Please sign in to comment.