feat: support partial IDL and @entry-id annotation #1012
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
| name: "[rs] CI" | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - ".cargo/**" | |
| - ".github/workflows/rs-*.yml" # No biggie to trigger this on changes in rs-release.yml | |
| - "examples/**" | |
| - "rs/**" | |
| - "templates/**" | |
| - "Cargo.lock" | |
| - "Cargo.toml" | |
| - "rust-toolchain.toml" | |
| pull_request: | |
| paths: | |
| - ".cargo/**" | |
| - ".github/workflows/rs-*.yml" # No biggie to trigger this on changes in rs-release.yml | |
| - "examples/**" | |
| - "rs/**" | |
| - "templates/**" | |
| - "Cargo.lock" | |
| - "Cargo.toml" | |
| - "rust-toolchain.toml" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| __GEAR_WASM_BUILDER_NO_FEATURES_TRACKING: 1 | |
| jobs: | |
| check: | |
| name: Check Code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Free Disk Space | |
| uses: ./.github/actions/free-disk-space | |
| - name: Install wasm-opt | |
| uses: ./.github/actions/install-wasm-utils | |
| - name: Check Code Formatting | |
| run: cargo fmt --all --check | |
| - name: Check Code With Clippy | |
| run: cargo clippy --workspace --all-targets --locked -- -D warnings | |
| - name: Check Code With Clippy on the `sails-rs` package with `ethexe` Feature | |
| run: cargo clippy -p sails-rs --all-targets --locked --features ethexe -- -D warnings | |
| - name: Check Code With Clippy in Ethexe Workspace | |
| run: cargo clippy --workspace --all-targets --locked --manifest-path ./rs/ethexe/Cargo.toml -- -D warnings | |
| - name: Check IDL Parser For WASM With Clippy | |
| run: cargo clippy -p sails-idl-parser --all-targets --locked --target=wasm32-unknown-unknown -- -D warnings | |
| test: | |
| name: Run Workflow Tests | |
| uses: ./.github/workflows/rs-run-ws-tests.yml | |
| with: | |
| gear_node_version: 1.9.0 | |
| test-cli: | |
| name: Run CLI Tests | |
| uses: ./.github/workflows/rs-run-cli-tests.yml |