ci: add starklings evaluation #1
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: Starklings Benchmark | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| starklings-benchmark: | |
| name: Starklings Benchmark | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Setup Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 9 | |
| - name: Clone Starklings | |
| run: git clone https://github.com/starknet-edu/starklings.git | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build Cairo Coder | |
| run: pnpm build | |
| - name: Start Cairo Coder (background) | |
| run: | | |
| pnpm start & | |
| sleep 30 # Attendre que le serveur démarre | |
| - name: Run Starklings Evaluation | |
| run: node scripts/evaluate-with-starklings.js |