Skip to content

Commit cadba65

Browse files
committed
fix: set CGO and library paths for Go bindings in CI
1 parent 29c04bc commit cadba65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,17 @@ jobs:
6767
6868
- name: Build Go Bindings
6969
working-directory: go
70+
env:
71+
CGO_CXXFLAGS: "-std=c++17 -I${{ github.workspace }}/install/include/openfhe -I${{ github.workspace }}/install/include/openfhe/core -I${{ github.workspace }}/install/include/openfhe/binfhe -I${{ github.workspace }}/install/include/openfhe/pke"
72+
CGO_LDFLAGS: "-L${{ github.workspace }}/install/lib -Wl,-rpath,${{ github.workspace }}/install/lib -lOpenFHEbinfhe -lOpenFHEcore -lOpenFHEpke"
73+
LD_LIBRARY_PATH: "${{ github.workspace }}/install/lib"
7074
run: |
7175
go build ./...
7276
7377
- name: Test Go Bindings
7478
working-directory: go
79+
env:
80+
LD_LIBRARY_PATH: "${{ github.workspace }}/install/lib"
7581
run: |
7682
go test ./... -v
7783

0 commit comments

Comments
 (0)