Add Verifiable Message Signing #292
Workflow file for this run
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
| # SPDX-FileCopyrightText: © 2025 Daniel Sharifi <[email protected]> | |
| # SPDX-FileCopyrightText: © 2025 Phala Network <[email protected]> | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: SDK tests | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [master, next, dev-*] | |
| pull_request: | |
| branches: [master, next, dev-*] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| sdk-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/[email protected] | |
| with: | |
| components: clippy, rustfmt | |
| # This additional target is needed for wasm32 compatibility check. | |
| targets: wasm32-unknown-unknown, thumbv6m-none-eabi | |
| - name: SDK tests | |
| run: cd sdk && ./run-tests.sh | |
| - name: Verify WASM compilation | |
| # Ensures SDK types can be used in smart contracts | |
| run: cargo check --target=wasm32-unknown-unknown -p dstack-sdk-types | |
| - name: Verify no_std compatibility | |
| run: | | |
| cargo test -p dstack-sdk-types --test no_std_test --no-default-features | |
| cargo check -p no_std_check --target thumbv6m-none-eabi |