fix(solver/setup): update setup & docs (#251) #294
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: check-rust-bindings | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| paths: | |
| - 'modules/*-solidity/**' | |
| - 'crates/generated/**' | |
| workflow_dispatch: | |
| jobs: | |
| check-rust-bindings: | |
| name: Check rust bindings | |
| runs-on: ["randamu-self-hosted-default"] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: 'recursive' | |
| # who knows what version is on our runners | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: 'v1.4.4' | |
| cache: false | |
| # 1. Compile blocklock-solidity | |
| - name: blocklock-solidity - Install dependencies | |
| working-directory: ./modules/blocklock-solidity | |
| run: npm ci | |
| - name: blocklock-solidity - Build Solidity contracts | |
| working-directory: ./modules/blocklock-solidity | |
| run: npm run build | |
| # 2. Compile randomness-solidity | |
| - name: randomness-solidity - Install dependencies | |
| working-directory: ./modules/randomness-solidity | |
| run: npm ci | |
| - name: randomness-solidity - Build Solidity contracts | |
| working-directory: ./modules/randomness-solidity | |
| run: npm run build | |
| # 3. Compile onlyswaps-solidity | |
| - name: onlyswaps-solidity - Install dependencies | |
| working-directory: ./modules/onlyswaps-solidity | |
| run: npm ci | |
| - name: onlyswaps-solidity - Build Solidity contracts | |
| working-directory: ./modules/onlyswaps-solidity | |
| run: npm run build | |
| # 4. Actually check the bindings against the generated code | |
| - name: Check the bindings match | |
| run: ./generate-bindings.sh | |