Gossip SQLite storage #4426
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| fmt: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Check | |
| run: bash contrib/scripts/check-fmt.sh check | |
| check-crates: | |
| name: Check crates | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| crate: | |
| - nostr | |
| - nostr --features all-nips | |
| - nostr --no-default-features --features alloc | |
| - nostr --no-default-features --features alloc,all-nips | |
| - nostr-browser-signer --target wasm32-unknown-unknown | |
| - nostr-browser-signer-proxy | |
| - nostr-blossom | |
| - nostr-http-file-storage | |
| - nostr-database | |
| - nostr-gossip | |
| - nostr-gossip-memory | |
| - nostr-gossip-sqlite | |
| - nostr-lmdb | |
| - nostr-indexeddb --target wasm32-unknown-unknown | |
| - nostr-ndb | |
| - nostr-keyring | |
| - nostr-keyring --features async | |
| - nostr-relay-pool | |
| - nostr-relay-builder | |
| - nostr-relay-builder --features tor | |
| - nostr-connect | |
| - nwc | |
| - nostr-sdk | |
| - nostr-sdk --features all-nips | |
| - nostr-sdk --features tor | |
| - nostr-sdk --all-features | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install deps | |
| run: sudo apt update && sudo apt install -y libdbus-1-dev pkg-config | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2.7.8 | |
| with: | |
| key: ${{ matrix.crate }} | |
| - name: Check | |
| run: cargo check -p ${{ matrix.crate }} | |
| - name: Clippy | |
| run: cargo clippy -p ${{ matrix.crate }} -- -D warnings | |
| - name: Test | |
| if: "!contains(matrix.crate, 'wasm32-unknown-unknown')" | |
| run: cargo test -p ${{ matrix.crate }} | |
| check-docs: | |
| name: Check docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2.7.8 | |
| - name: Install deps | |
| run: sudo apt update && sudo apt install -y libdbus-1-dev pkg-config | |
| - name: Check | |
| run: bash contrib/scripts/check-docs.sh | |
| build-no-std: | |
| name: Build no_std | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./crates/nostr/examples/embedded | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2.7.8 | |
| - name: Set default toolchain | |
| run: rustup default nightly | |
| - name: Set profile | |
| run: rustup set profile minimal | |
| - name: Install just | |
| uses: extractions/setup-just@v3 | |
| - name: Init | |
| run: sudo apt update && just init | |
| - name: Build | |
| run: just build |