bindings/wasm #1070
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: bindings/wasm | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| schedule: | |
| # Run at 8:00 AM every day | |
| - cron: "0 8 * * *" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Rust toolchain | |
| uses: ./.github/actions/toolchains/rust | |
| - name: Setup Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: 22 | |
| - name: Install wasmlpack | |
| run: cargo install wasm-pack | |
| - name: Test wasm binding | |
| run: | | |
| cd bindings/wasm | |
| cargo fetch | |
| cargo clippy --all-targets --no-deps -- -Dwarnings | |
| wasm-pack build --target nodejs --release | |
| wasm-pack test --release --node | |
| node test.js |