chore: release master (#550) #1138
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: Benchmark | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - benchmark # For debugging | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| # Don't run on forks. Forks don't have access to the S3 credentials and the workflow will fail | |
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - run: corepack enable | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| cache: pnpm | |
| node-version: 24 | |
| - run: pnpm i --frozen-lockfile && pnpm build && pnpm generate | |
| - name: Run benchmarks | |
| run: pnpm benchmark | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # benchmark options | |
| BENCHMARK_S3: true | |
| # S3 credentials | |
| S3_ACCESS_KEY: ${{ secrets.S3_BENCH_LODESTAR_ACCESS_KEY }} | |
| S3_SECRET_KEY: ${{ secrets.S3_BENCH_LODESTAR_SECRET_KEY }} | |
| S3_REGION: ${{ secrets.S3_BENCH_LODESTAR_REGION }} | |
| S3_BUCKET: ${{ secrets.S3_BENCH_LODESTAR_BUCKET }} | |
| S3_ENDPOINT: ${{ secrets.S3_BENCH_LODESTAR_ENDPOINT }} | |
| # Key prefix to separate benchmark data from multiple repositories | |
| S3_KEY_PREFIX: ${{ github.repository }}/${{ runner.os }} |