Skip to content

Commit 0be7644

Browse files
authored
Update go.yml
1 parent 2668c5e commit 0be7644

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: go version
2222
- name: Build Go executable
2323
run: |
24-
go build -o cmddir.exe ./main.go # 根据实际情况修改路径和文件名
24+
GOOS=windows GOARCH=amd64 go build -o cmddir.exe ./main.go
2525
2626
- name: Upload executable as artifact
2727
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)