File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ workflow_dispatch : # 允许手动触发 workflow
78
89jobs :
910 build :
@@ -24,11 +25,12 @@ jobs:
2425 with :
2526 go-version : ' 1.24'
2627 - name : Build
28+ env :
29+ GOOS : ${{ matrix.goos }}
30+ GOARCH : ${{ matrix.goarch }}
31+ GOARM : 7
32+ CGO_ENABLED : 0 # 禁用 CGO 以进行静态链接
2733 run : |
28- GOOS=${{ matrix.goos }}
29- GOARCH=${{ matrix.goarch }}
30- GOARM=7
31- CGO_ENABLED=0
3234 output_name="godoc-mcp-server-${GOOS}-${GOARCH}"
3335 if [ "${GOOS}" = "windows" ]; then
3436 output_name="${output_name}.exe"
4143 file : godoc-mcp-server-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }}
4244 tag : latest
4345 overwrite : true
46+ file_glob : true
47+ release_name : " Latest Release"
48+ body : " Automatically built binaries for different platforms."
You can’t perform that action at this time.
0 commit comments