Skip to content

Commit 2aafebd

Browse files
committed
test zig cc
1 parent c8e4150 commit 2aafebd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/go.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ jobs:
1616
contents: write
1717
steps:
1818
- uses: actions/checkout@v4
19+
- uses: goto-bus-stop/setup-zig@v2
1920

2021
- name: Set up Go
2122
uses: actions/setup-go@v4
2223
with:
2324
go-version: '1.20'
2425

2526
- 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
2728

2829
- 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
3031

3132
- name: Create Github Release
3233
id: create_release

0 commit comments

Comments
 (0)