mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-06 15:23:10 +00:00
commit
e52e7d9ee9
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -22,6 +22,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y build-essential clang libclang-dev libssl-dev pkg-config
|
||||||
|
|
||||||
- name: Install active toolchain
|
- name: Install active toolchain
|
||||||
run: rustup install
|
run: rustup install
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,7 @@ borsh = "1.5.7"
|
|||||||
base58 = "0.2.0"
|
base58 = "0.2.0"
|
||||||
itertools = "0.14.0"
|
itertools = "0.14.0"
|
||||||
|
|
||||||
rocksdb = { version = "0.21.0", default-features = false, features = [
|
rocksdb = { version = "0.24.0", default-features = false, features = [
|
||||||
"snappy",
|
"snappy",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
|
|||||||
18
README.md
18
README.md
@ -69,16 +69,14 @@ Install build dependencies
|
|||||||
- On Linux
|
- On Linux
|
||||||
Ubuntu / Debian
|
Ubuntu / Debian
|
||||||
```sh
|
```sh
|
||||||
apt install build-essential clang libssl-dev pkg-config
|
apt install build-essential clang libclang-dev libssl-dev pkg-config
|
||||||
```
|
```
|
||||||
|
|
||||||
Fedora
|
Fedora
|
||||||
```sh
|
```sh
|
||||||
sudo dnf install clang openssl-devel pkgconf llvm
|
sudo dnf install clang clang-devel openssl-devel pkgconf
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note for Fedora 41+ users:** GCC 14+ has stricter C++ standard library headers that cause build failures with the bundled RocksDB. You must set `CXXFLAGS="-include cstdint"` when running cargo commands. See the [Run tests](#run-tests) section for examples.
|
|
||||||
|
|
||||||
- On Mac
|
- On Mac
|
||||||
```sh
|
```sh
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
@ -110,9 +108,6 @@ The NSSA repository includes both unit and integration test suites.
|
|||||||
```bash
|
```bash
|
||||||
# RISC0_DEV_MODE=1 is used to skip proof generation and reduce test runtime overhead
|
# RISC0_DEV_MODE=1 is used to skip proof generation and reduce test runtime overhead
|
||||||
RISC0_DEV_MODE=1 cargo test --release
|
RISC0_DEV_MODE=1 cargo test --release
|
||||||
|
|
||||||
# On Fedora 41+ (GCC 14+), prefix with CXXFLAGS to fix RocksDB build:
|
|
||||||
CXXFLAGS="-include cstdint" RISC0_DEV_MODE=1 cargo test --release
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Integration tests
|
### Integration tests
|
||||||
@ -122,9 +117,6 @@ export NSSA_WALLET_HOME_DIR=$(pwd)/integration_tests/configs/debug/wallet/
|
|||||||
cd integration_tests
|
cd integration_tests
|
||||||
# RISC0_DEV_MODE=1 skips proof generation; RUST_LOG=info enables runtime logs
|
# RISC0_DEV_MODE=1 skips proof generation; RUST_LOG=info enables runtime logs
|
||||||
RUST_LOG=info RISC0_DEV_MODE=1 cargo run $(pwd)/configs/debug all
|
RUST_LOG=info RISC0_DEV_MODE=1 cargo run $(pwd)/configs/debug all
|
||||||
|
|
||||||
# On Fedora 41+ (GCC 14+), prefix with CXXFLAGS to fix RocksDB build:
|
|
||||||
CXXFLAGS="-include cstdint" RUST_LOG=info RISC0_DEV_MODE=1 cargo run $(pwd)/configs/debug all
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# Run the sequencer
|
# Run the sequencer
|
||||||
@ -134,9 +126,6 @@ The sequencer can be run locally:
|
|||||||
```bash
|
```bash
|
||||||
cd sequencer_runner
|
cd sequencer_runner
|
||||||
RUST_LOG=info cargo run --release configs/debug
|
RUST_LOG=info cargo run --release configs/debug
|
||||||
|
|
||||||
# On Fedora 41+ (GCC 14+), prefix with CXXFLAGS to fix RocksDB build:
|
|
||||||
CXXFLAGS="-include cstdint" RUST_LOG=info cargo run --release configs/debug
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If everything went well you should see an output similar to this:
|
If everything went well you should see an output similar to this:
|
||||||
@ -162,9 +151,6 @@ This repository includes a CLI for interacting with the Nescience sequencer. To
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo install --path wallet --force
|
cargo install --path wallet --force
|
||||||
|
|
||||||
# On Fedora 41+ (GCC 14+), prefix with CXXFLAGS to fix RocksDB build:
|
|
||||||
CXXFLAGS="-include cstdint" cargo install --path wallet --force
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Run `wallet help` to check everything went well.
|
Run `wallet help` to check everything went well.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user