update ci #5
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: Listen for batch dispatch | ||
| on: | ||
| repository_dispatch: | ||
| types: [run-ci-batch] | ||
| jobs: | ||
| launch-batches: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Call reusable CI for each batch | ||
| uses: ./.github/workflows/batch.yml | ||
| with: | ||
| batch-index: ${{ fromJSON(github.event.client_payload).batch_index }} | ||
| batch-size: ${{ fromJSON(github.event.client_payload).batch_size }} | ||
| # Loop over the count | ||
| # (we use a matrix to fire them in parallel, still ≤256 total) | ||
| strategy: | ||
| matrix: | ||
| batch_index: ${{ seq(fromJSON(github.event.client_payload).batch_count) }} | ||