Skip to content

Commit 6ebf723

Browse files
committed
ci(go): fix libwatcher-c build
1 parent f741128 commit 6ebf723

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/watcher-go.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
permissions:
1010
contents: read
1111

12+
env:
13+
DYLD_LIBRARY_PATH: /usr/local/lib
14+
CGO_CFLAGS: -I/usr/local/include
15+
CGO_LDFLAGS: -L/usr/local/lib
16+
1217
jobs:
1318
test:
1419
runs-on: ${{ matrix.os }}
@@ -28,6 +33,8 @@ jobs:
2833
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
2934
cmake --build build
3035
sudo cmake --install build
36+
- if: runner.os == 'ubuntu-latest'
37+
run: ldconfig
3138
- run: go test -race
3239
working-directory: watcher-go
3340
- uses: golangci/golangci-lint-action@v9

0 commit comments

Comments
 (0)