fix: remove unused SigningKey import in WASM binding #122
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: [main] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| versioning: | |
| name: Versioning | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Check managed versions | |
| run: node scripts/version-sync.mjs check | |
| rust: | |
| name: Rust (clippy + test + no-unsafe check) | |
| needs: versioning | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install nightly toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly-2026-04-08 | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| - name: Test | |
| run: cargo test --workspace | |
| - name: Check no unsafe code in application crates | |
| run: | | |
| if cargo clippy --workspace -- -D unsafe_code 2>&1 | grep "unsafe_code"; then | |
| echo "ERROR: unsafe code found" | |
| exit 1 | |
| fi | |
| echo "No unsafe code found." | |
| wasm: | |
| name: WASM (build + roundtrip test) | |
| needs: versioning | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install nightly toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly-2026-04-08 | |
| targets: wasm32-unknown-unknown | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install wasm-pack | |
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
| - name: Build WASM | |
| run: wasm-pack build bindings/signet-ts --target nodejs --out-dir pkg | |
| - name: Run WASM roundtrip test | |
| run: node examples/wasm-roundtrip/test.mjs | |
| typescript: | |
| name: TypeScript (build + test) | |
| needs: wasm | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install nightly toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly-2026-04-08 | |
| targets: wasm32-unknown-unknown | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Install wasm-pack | |
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
| - name: Build WASM into packages/signet-core/wasm | |
| run: wasm-pack build bindings/signet-ts --target nodejs --out-dir ../../packages/signet-core/wasm | |
| - name: Install @signet-auth/core dependencies | |
| working-directory: packages/signet-core | |
| run: npm install && npm install --save-dev typescript | |
| - name: Build and test @signet-auth/core | |
| run: | | |
| cd packages/signet-core | |
| npx tsc | |
| cp -r wasm dist/wasm | |
| node --test dist/tests/core.test.js | |
| - name: Install @signet-auth/mcp dependencies | |
| working-directory: packages/signet-mcp | |
| run: npm install | |
| - name: Build and test @signet-auth/mcp | |
| run: | | |
| cd packages/signet-mcp | |
| npx tsc | |
| node --test dist/tests/mcp.test.js | |
| - name: Install @signet-auth/mcp-server dependencies | |
| working-directory: packages/signet-mcp-server | |
| run: npm install | |
| - name: Build and test @signet-auth/mcp-server | |
| run: | | |
| cd packages/signet-mcp-server | |
| npx tsc | |
| node --test dist/tests/server.test.js | |
| - name: Install @signet-auth/mcp-tools dependencies | |
| working-directory: packages/signet-mcp-tools | |
| run: npm install | |
| - name: Build and test @signet-auth/mcp-tools | |
| run: | | |
| cd packages/signet-mcp-tools | |
| npx tsc -p tsconfig.test.json | |
| node --test dist-test/tests/tools.test.js | |
| - name: Install @signet-auth/vercel-ai dependencies | |
| working-directory: packages/signet-vercel-ai | |
| run: npm install | |
| - name: Build and test @signet-auth/vercel-ai | |
| run: | | |
| cd packages/signet-vercel-ai | |
| npx tsc -p tsconfig.test.json | |
| node --test dist-test/tests/vercel-ai.test.js | |
| python-binding: | |
| name: Python binding (build + test) | |
| needs: [versioning, rust] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install nightly toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly-2026-04-08 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Create venv and install tools | |
| run: | | |
| python -m venv .venv | |
| source .venv/bin/activate | |
| pip install "maturin>=1.5,<2" "pytest>=8" "pytest-asyncio>=0.23" | |
| - name: Build and test | |
| run: | | |
| source .venv/bin/activate | |
| cd bindings/signet-py && maturin develop && pytest tests/ -v |