nostr: add Kind::BlossomServerList and `EventBuilder::blossom_server_list
#4683
Workflow file for this run
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/fmt.sh check | |
| check-crates: | |
| name: Check crates | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| crate: | |
| - nostr | |
| - nostr --features rand | |
| - nostr --features os-rng | |
| - nostr --features all-nips | |
| - nostr --features all-nips,rand | |
| - nostr --features all-nips,os-rng | |
| - nostr --features all-nips --target wasm32-wasip2 | |
| - nostr --features all-nips,rand --target wasm32-wasip2 | |
| - nostr --features all-nips,os-rng --target wasm32-wasip2 | |
| - nostr --no-default-features --features alloc | |
| - nostr --no-default-features --features alloc,rand | |
| - nostr --no-default-features --features alloc,all-nips | |
| - nostr --no-default-features --features alloc,all-nips,rand | |
| - nostr-browser-signer --target wasm32-unknown-unknown | |
| - nostr-browser-signer-proxy | |
| - nostr-blossom | |
| - nostr-http-file-storage | |
| - nostr-database | |
| - nostr-database-test-suite | |
| - nostr-gossip | |
| - nostr-gossip-memory | |
| - nostr-gossip-sqlite | |
| - nostr-gossip-test-suite | |
| - nostr-lmdb | |
| - nostr-indexeddb --target wasm32-unknown-unknown | |
| - nostr-ndb | |
| - nostr-sqlite | |
| - 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: Install WASI SDK | |
| if: "contains(matrix.crate, 'wasm32-wasip2')" | |
| run: | | |
| wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-29/wasi-sdk-29.0-x86_64-linux.tar.gz | |
| tar xvf wasi-sdk-29.0-x86_64-linux.tar.gz | |
| WASI_SDK="$(pwd)/wasi-sdk-29.0-x86_64-linux" | |
| echo "WASI_SDK=$WASI_SDK" >> $GITHUB_ENV | |
| echo "CC_wasm32_wasip2=$WASI_SDK/bin/clang" >> $GITHUB_ENV | |
| echo "AR_wasm32_wasip2=$WASI_SDK/bin/llvm-ar" >> $GITHUB_ENV | |
| echo "CFLAGS_wasm32_wasip2=--sysroot=$WASI_SDK/share/wasi-sysroot" >> $GITHUB_ENV | |
| - 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-')" | |
| 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 |