Skip to content

Commit

Permalink
test zig cc
Browse files Browse the repository at this point in the history
  • Loading branch information
sb-child committed Jul 5, 2024
1 parent c8e4150 commit 2aafebd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Build Linux amd64
run: GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o lsp_linux-amd64
run: GOOS=linux GOARCH=amd64 CGO_ENABLED=1 CC="zig cc" CXX="zig cc" go build -o lsp_linux-amd64

- name: Build Windows amd64
run: GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -o lsp_windows-amd64.exe
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

- name: Create Github Release
id: create_release
Expand Down

0 comments on commit 2aafebd

Please sign in to comment.