Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use chia-wallet-sdk #3

Merged
merged 29 commits into from
Aug 27, 2024
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
35 changes: 32 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
permissions:
contents: write
id-token: write
'on':
on:
push:
branches:
- main
Expand All @@ -18,9 +18,35 @@ permissions:
- '**/*.gitignore'
- .editorconfig
- docs/**
pull_request: null
pull_request:
branches:
- '**'

jobs:
rust-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Clippy
run: cargo clippy --workspace --all-features --all-targets

- name: Unused dependencies
run: |
cargo install cargo-machete --locked
cargo machete

- name: Fmt
run: cargo fmt --all -- --files-with-diff --check

build:
needs: rust-checks
strategy:
fail-fast: false
matrix:
Expand All @@ -34,7 +60,6 @@ jobs:
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
# https://github.com/sfackler/rust-openssl/issues/1021#issuecomment-605602642
build: |
set -e &&
yarn build --target x86_64-unknown-linux-gnu &&
Expand Down Expand Up @@ -112,6 +137,7 @@ jobs:
name: bindings-${{ matrix.settings.target }}
path: ${{ env.APP_NAME }}.*.node
if-no-files-found: error

test-macOS-windows-binding:
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
needs:
Expand Down Expand Up @@ -148,6 +174,7 @@ jobs:
shell: bash
- name: Test bindings
run: yarn test

test-linux-x64-gnu-binding:
name: Test bindings on Linux-x64-gnu - node@${{ matrix.node }}
needs:
Expand Down Expand Up @@ -178,6 +205,7 @@ jobs:
shell: bash
- name: Test bindings
run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test

test-linux-aarch64-gnu-binding:
name: Test bindings on aarch64-unknown-linux-gnu - node@${{ matrix.node }}
needs:
Expand Down Expand Up @@ -218,6 +246,7 @@ jobs:
set -e
yarn test
ls -la

publish:
name: Publish
runs-on: ubuntu-latest
Expand Down
Loading