Skip to content

Commit

Permalink
[bindings:go] fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
ross96D committed Dec 23, 2024
1 parent b8a9dc4 commit 85192a0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions bindings/go/.github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
workflow_dispatch:

jobs:
test-windows:
runs-on: windows-latest
name: Build and Test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
- run: go test ./...

test-linux:
runs-on: ubuntu-latest
name: Build and Test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
- run: go test ./...
2 changes: 1 addition & 1 deletion bindings/go/rdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package rdb
#cgo CFLAGS: -g -Wall
#cgo linux,arm64 LDFLAGS: ${SRCDIR}/pkg/native/aarch64-linux/librdb.a
#cgo linux,amd64 LDFLAGS: ${SRCDIR}/pkg/native/x86_64-linux/librdb.a
#cgo windows,amd64 LDFLAGS: -L${SRCDIR}/pkg/native/x86_64-windows -lrbd
#cgo windows,amd64 LDFLAGS: -L${SRCDIR}/pkg/native/x86_64-windows -lrdb
#cgo darwin,arm64 LDFLAGS: ${SRCDIR}/pkg/native/aarch64-macos/librdb.a
#cgo darwin,amd64 LDFLAGS: ${SRCDIR}/pkg/native/x86_64-macos/librdb.a
Expand Down

0 comments on commit 85192a0

Please sign in to comment.