docs: add contract ABI documentation to contract/ABI.md #5
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: Contract CI | |
| on: | |
| pull_request: | |
| paths: | |
| - "contract/**" | |
| - ".github/workflows/contract.yml" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "contract/**" | |
| - ".github/workflows/contract.yml" | |
| jobs: | |
| contract: | |
| name: Contract checks | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| defaults: | |
| run: | |
| working-directory: contract | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Install stable Rust with WASM target | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: contract | |
| - name: Build contract for native target | |
| run: cargo build --release | |
| - name: Build contract for WASM target | |
| run: cargo build --target wasm32-unknown-unknown --release | |
| - name: Run contract tests | |
| run: cargo test |