build tooling (#69)

* script/macos:add

* script/linux:add libx11-dev

* Cargo.toml:pin nostr nostr-sdk nostr nostr-connect

---------

Co-authored-by: reya <123083837+reyamir@users.noreply.github.com>
This commit is contained in:
@RandyMcMillan
2025-06-28 03:14:54 -04:00
committed by GitHub
parent 14076054c0
commit 2dfb48b538
5 changed files with 90 additions and 10 deletions

30
.github/workflows/rust.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Rust
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "m**" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rustup: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: script/linux
run: chmod +x ./script/linux && ./script/linux
if: matrix.os == 'ubuntu-latest'
#- name: cargo update
# run: cargo update
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose