mirror of
https://github.com/logos-messaging/logos-delivery-go-bindings.git
synced 2026-03-07 18:13:31 +00:00
chore: align with logos-delivery rename and v0.38.0-beta (#105)
This commit is contained in:
parent
95be7e9319
commit
ac6f8a5096
10
.github/workflows/CI.yml
vendored
10
.github/workflows/CI.yml
vendored
@ -20,14 +20,14 @@ jobs:
|
||||
with:
|
||||
go-version: "1.23"
|
||||
|
||||
- name: Clone logos-messaging-nim
|
||||
- name: Clone logos-delivery
|
||||
run: |
|
||||
mkdir -p vendor
|
||||
git clone --depth 1 https://github.com/logos-messaging/logos-messaging-nim.git vendor/logos-messaging-nim
|
||||
git clone --depth 1 https://github.com/logos-messaging/logos-delivery.git vendor/logos-delivery
|
||||
|
||||
- name: Build libwaku
|
||||
run: |
|
||||
cd vendor/logos-messaging-nim
|
||||
cd vendor/logos-delivery
|
||||
echo "Building libwaku in $(pwd)"
|
||||
make libwaku -j
|
||||
cd ../..
|
||||
@ -46,7 +46,7 @@ jobs:
|
||||
|
||||
- name: Build waku bindings
|
||||
run: |
|
||||
export LMN_DIR=$(pwd)/vendor/logos-messaging-nim
|
||||
export LMN_DIR=$(pwd)/vendor/logos-delivery
|
||||
export CGO_CFLAGS="-I${LMN_DIR}/library/"
|
||||
export CGO_LDFLAGS="-L${LMN_DIR}/build/ -lwaku -Wl,-rpath,${LMN_DIR}/build/"
|
||||
make -C waku build
|
||||
@ -58,7 +58,7 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cd waku
|
||||
export LMN_DIR=$(pwd)/vendor/logos-messaging-nim
|
||||
export LMN_DIR=$(pwd)/vendor/logos-delivery
|
||||
export CGO_CFLAGS="-I${LMN_DIR}/library/"
|
||||
export CGO_LDFLAGS="-L${LMN_DIR}/build/ -lwaku -Wl,-rpath,${LMN_DIR}/build/"
|
||||
go test -count=10 -p=1 -v -timeout=360m . | tee ../testlogs.log
|
||||
|
||||
4
.github/workflows/CI_endurance.yml
vendored
4
.github/workflows/CI_endurance.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
||||
|
||||
- name: Build libwaku
|
||||
run: |
|
||||
cd vendor/logos-messaging-nim
|
||||
cd vendor/logos-delivery
|
||||
make libwaku
|
||||
|
||||
- name: Build waku bindings
|
||||
@ -94,7 +94,7 @@ jobs:
|
||||
|
||||
- name: Build libwaku
|
||||
run: |
|
||||
cd vendor/logos-messaging-nim
|
||||
cd vendor/logos-delivery
|
||||
make libwaku
|
||||
|
||||
- name: Build waku bindings
|
||||
|
||||
@ -35,7 +35,7 @@ jobs:
|
||||
|
||||
- name: Build libwaku
|
||||
run: |
|
||||
cd vendor/logos-messaging-nim
|
||||
cd vendor/logos-delivery
|
||||
make libwaku
|
||||
|
||||
- name: Build waku bindings
|
||||
|
||||
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -1,3 +1,3 @@
|
||||
[submodule "vendor/nwaku"]
|
||||
path = vendor/nwaku
|
||||
url = https://github.com/logos-messaging/logos-messaging-nim.git
|
||||
[submodule "vendor/logos-delivery"]
|
||||
path = vendor/logos-delivery
|
||||
url = https://github.com/logos-messaging/logos-delivery.git
|
||||
|
||||
14
README.md
14
README.md
@ -1,24 +1,24 @@
|
||||
# Waku Go Bindings
|
||||
# logos-delivery Go Bindings
|
||||
|
||||
Go bindings for the Waku library.
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
go get -u github.com/logos-messaging/logos-messaging-go-bindings
|
||||
go get -u github.com/logos-messaging/logos-delivery-go-bindings
|
||||
```
|
||||
|
||||
## Building & Dependencies
|
||||
|
||||
`libwaku` (from `logos-messaging-nim`) is required at compile-time.
|
||||
`libwaku` (from `logos-delivery`) is required at compile-time.
|
||||
|
||||
### Building with Makefile
|
||||
|
||||
If you have `logos-messaging-nim` checked out, point the build to it:
|
||||
If you have `logos-delivery` checked out, point the build to it:
|
||||
|
||||
```bash
|
||||
# path to your existing logos-messaging-nim clone
|
||||
export LMN_DIR=/absolute/path/to/logos-messaging-nim
|
||||
# path to your existing logos-delivery clone
|
||||
export LMN_DIR=/absolute/path/to/logos-delivery
|
||||
export CGO_CFLAGS="-I${LMN_DIR}/library"
|
||||
export CGO_LDFLAGS="-L${LMN_DIR}/build -lwaku -Wl,-rpath,${LMN_DIR}/build"
|
||||
|
||||
@ -34,7 +34,7 @@ make -C waku test TEST=TestConnectedPeersInfo
|
||||
|
||||
## Development
|
||||
|
||||
When working on this repository itself, `logos-messaging-nim` is included as a git submodule for convenience.
|
||||
When working on this repository itself, `logos-delivery` is included as a git submodule for convenience.
|
||||
|
||||
- Initialize and update the submodule, then build `libwaku`
|
||||
```sh
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
# Makefile for Waku Go Bindings
|
||||
|
||||
# Path to logos-messaging-nim (nwaku) submodule
|
||||
export LMN_DIR ?= $(shell pwd)/../vendor/logos-messaging-nim
|
||||
# Path to logos-delivery submodule
|
||||
export LMN_DIR ?= $(shell pwd)/../vendor/logos-delivery
|
||||
|
||||
# Debugging output
|
||||
print-paths:
|
||||
|
||||
BIN
waku/waku-bindings
Normal file
BIN
waku/waku-bindings
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user