mirror of
https://github.com/logos-messaging/logos-chat.git
synced 2026-05-14 16:39:39 +00:00
Merge branch 'main' into jazzz/ident_simplification
This commit is contained in:
commit
9a56104c7b
59
.github/workflows/ci.yml
vendored
59
.github/workflows/ci.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: ci
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -18,6 +18,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: Build
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macOS-latest]
|
os: [ubuntu-latest, macOS-latest]
|
||||||
@ -39,6 +40,7 @@ jobs:
|
|||||||
- run: make all
|
- run: make all
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
name: Test
|
||||||
needs: build
|
needs: build
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -56,58 +58,3 @@ jobs:
|
|||||||
key: ${{ runner.os }}-nbs-${{ steps.nbs.outputs.hash }}
|
key: ${{ runner.os }}-nbs-${{ steps.nbs.outputs.hash }}
|
||||||
- run: make update
|
- run: make update
|
||||||
- run: make tests
|
- run: make tests
|
||||||
|
|
||||||
test-windows:
|
|
||||||
needs: build
|
|
||||||
runs-on: windows-latest
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: msys2 {0}
|
|
||||||
env:
|
|
||||||
MSYSTEM: MINGW64
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
- uses: msys2/setup-msys2@v2
|
|
||||||
with:
|
|
||||||
update: true
|
|
||||||
install: >-
|
|
||||||
git
|
|
||||||
base-devel
|
|
||||||
mingw-w64-x86_64-toolchain
|
|
||||||
make
|
|
||||||
cmake
|
|
||||||
upx
|
|
||||||
mingw-w64-x86_64-rust
|
|
||||||
mingw-w64-x86_64-postgresql
|
|
||||||
mingw-w64-x86_64-gcc
|
|
||||||
mingw-w64-x86_64-gcc-libs
|
|
||||||
mingw-w64-x86_64-libwinpthread-git
|
|
||||||
mingw-w64-x86_64-zlib
|
|
||||||
mingw-w64-x86_64-openssl
|
|
||||||
mingw-w64-x86_64-python
|
|
||||||
mingw-w64-x86_64-cmake
|
|
||||||
mingw-w64-x86_64-llvm
|
|
||||||
mingw-w64-x86_64-clang
|
|
||||||
- run: |
|
|
||||||
echo "/usr/bin:$PATH" >> $GITHUB_PATH
|
|
||||||
echo "/mingw64/bin:$PATH" >> $GITHUB_PATH
|
|
||||||
echo "/usr/lib:$PATH" >> $GITHUB_PATH
|
|
||||||
echo "/mingw64/lib:$PATH" >> $GITHUB_PATH
|
|
||||||
- run: which upx gcc g++ make cmake cargo rustc python make mingw32-make
|
|
||||||
- id: nbs
|
|
||||||
run: echo "hash=$(git rev-parse HEAD:vendor/nimbus-build-system)" >> $GITHUB_OUTPUT
|
|
||||||
shell: bash
|
|
||||||
- uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: vendor/nimbus-build-system/vendor/Nim
|
|
||||||
key: ${{ runner.os }}-nbs-${{ steps.nbs.outputs.hash }}
|
|
||||||
- run: make update
|
|
||||||
- run: |
|
|
||||||
cd vendor/nwaku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc
|
|
||||||
make -f Makefile.mingw CC=gcc CXX=g++ libminiupnpc.a V=1
|
|
||||||
- run: |
|
|
||||||
cd vendor/nwaku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream
|
|
||||||
make CC="gcc -fPIC -D_WIN32_WINNT=0x0600 -DNATPMP_STATICLIB" libnatpmp.a V=1
|
|
||||||
- run: make tests
|
|
||||||
|
|||||||
@ -672,7 +672,7 @@ int main(int argc, char *argv[]) {
|
|||||||
char config[2048];
|
char config[2048];
|
||||||
if (peer) {
|
if (peer) {
|
||||||
snprintf(config, sizeof(config),
|
snprintf(config, sizeof(config),
|
||||||
"{\"name\":\"%s\",\"port\":%d,\"clusterId\":%d,\"shardId\":%d,\"staticPeer\":\"%s\"}",
|
"{\"name\":\"%s\",\"port\":%d,\"clusterId\":%d,\"shardId\":%d,\"staticPeers\":[\"%s\"]}",
|
||||||
name, port, cluster_id, shard_id, peer);
|
name, port, cluster_id, shard_id, peer);
|
||||||
} else {
|
} else {
|
||||||
snprintf(config, sizeof(config),
|
snprintf(config, sizeof(config),
|
||||||
|
|||||||
@ -43,6 +43,9 @@ proc createChatClient(
|
|||||||
if config.hasKey("shardId"):
|
if config.hasKey("shardId"):
|
||||||
wakuCfg.shardId = @[config["shardId"].getInt().uint16]
|
wakuCfg.shardId = @[config["shardId"].getInt().uint16]
|
||||||
|
|
||||||
|
if config.hasKey("clusterId") or config.hasKey("shardId"):
|
||||||
|
wakuCfg.pubsubTopic = "/waku/2/rs/" & $wakuCfg.clusterId & "/" & $wakuCfg.shardId[0]
|
||||||
|
|
||||||
if config.hasKey("staticPeers"):
|
if config.hasKey("staticPeers"):
|
||||||
wakuCfg.staticPeers = @[]
|
wakuCfg.staticPeers = @[]
|
||||||
for peer in config["staticPeers"]:
|
for peer in config["staticPeers"]:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user