Files
coop/.github/workflows/rust.yml
@RandyMcMillan 2dfb48b538 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>
2025-06-28 14:14:54 +07:00

31 lines
603 B
YAML

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