Commit 2aafebd 1 parent c8e4150 commit 2aafebd Copy full SHA for 2aafebd
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,18 @@ jobs:
16
16
contents : write
17
17
steps :
18
18
- uses : actions/checkout@v4
19
+ - uses : goto-bus-stop/setup-zig@v2
19
20
20
21
- name : Set up Go
21
22
uses : actions/setup-go@v4
22
23
with :
23
24
go-version : ' 1.20'
24
25
25
26
- name : Build Linux amd64
26
- run : GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o lsp_linux-amd64
27
+ run : GOOS=linux GOARCH=amd64 CGO_ENABLED=1 CC="zig cc" CXX="zig cc" go build -o lsp_linux-amd64
27
28
28
29
- name : Build Windows amd64
29
- run : GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -o lsp_windows-amd64.exe
30
+ run : GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC="zig cc -target x86_64-windows" CXX="zig cc -target x86_64-windows" go build -o lsp_windows-amd64.exe
30
31
31
32
- name : Create Github Release
32
33
id : create_release
You can’t perform that action at this time.
0 commit comments