Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
- os: macos-latest

runs-on: ${{ matrix.os }}
if: github.event.pull_request.draft != true

steps:
- uses: actions/checkout@v4

- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libsecp256k1-dev libssl-dev

- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: brew install secp256k1 openssl@3

- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: 0.16.0

- name: Build
run: zig build

- name: Test
run: zig build test
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[libnostr-z](https://github.com/privkeyio/libnostr-z).

A focused tool for the things you actually script: signing and publishing
events, querying relays, counting, reading relay info, and syncing.
events, querying relays, counting, and reading relay info.

## Build

Expand All @@ -21,11 +21,10 @@ zig build -Doptimize=ReleaseFast
```
noz key public <seckey> Derive the hex public key from a hex/nsec secret key
noz key generate Generate a new keypair (hex sec + pub)
noz event <url> ... sign and publish an event (in progress)
noz req <url> ... subscribe and print matching events (in progress)
noz count <url> ... count matching events (in progress)
noz relay <url> print the NIP-11 relay info doc (in progress)
noz sync <src> <dst> ... NIP-77 reconcile src into dst (in progress)
noz event <url> ... sign and publish an event
noz req <url> ... subscribe and print matching events (to EOSE)
noz count <url> ... count matching events (NIP-45)
noz relay <url> print the NIP-11 relay info doc
```

## License
Expand Down
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
.minimum_zig_version = "0.16.0",
.dependencies = .{
.nostr = .{
.url = "https://github.com/privkeyio/libnostr-z/archive/refs/tags/v0.3.0.tar.gz",
.hash = "nostr-0.3.0-JY6OcJJ0DwDrcooJo6viPaiDg6ohNPie0wV10XykgQPE",
.url = "https://github.com/privkeyio/libnostr-z/archive/refs/tags/v0.3.2.tar.gz",
.hash = "nostr-0.3.2-JY6OcPiYDwCqpbCqr3dTI3IlRd2055ALPPUUmV0n3eCs",
},
},
.paths = .{
Expand Down
Loading
Loading