chore: daily ci improvement

This commit is contained in:
darshankabariya 2025-12-20 00:14:00 +05:30
parent 01b58d79f0
commit cdad67ee80
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22
2 changed files with 9 additions and 6 deletions

View File

@ -17,14 +17,17 @@ go get -u github.com/logos-messaging/logos-messaging-go-bindings
If you want to invoke `go build` or `go test` directly, export the same variables the Makefile sets:
```bash
# path to your existing logos-messaging-nim clone
export LMN_DIR=/path/to/logos-messaging-nim
export CGO_CFLAGS="-I${LMN_DIR}/library/"
export CGO_LDFLAGS="-L${LMN_DIR}/build/ -lwaku -Wl,-rpath,${LMN_DIR}/build/"
export LMN_DIR=/absolute/path/to/logos-messaging-nim
export CGO_CFLAGS="-I${LMN_DIR}/library"
export CGO_LDFLAGS="-L${LMN_DIR}/build -lwaku -Wl,-rpath,${LMN_DIR}/build"
# compile all packages
go build ./...
go build ./waku
# run a specific test (no cache)
# run all tests
go test ./waku
# run a specific test
go test ./waku -count=1 -run TestConnectedPeersInfo -v
```

View File

@ -50,7 +50,7 @@ check-folders:
# Build SDS Go Bindings
build: build-libwaku
@echo "Building Waku Go Bindings..."
go build ./...
go build ./waku
# Build libwaku from the nwaku submodule
# Build libwaku once (clone if needed). Skips work when headers & libs already exist.