diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d450cd1..d6db1460 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,20 +21,21 @@ jobs: name: Get Runner Labels uses: ./.github/workflows/get-runner-labels.yml - prepare-binding: - name: Prepare Rspack Binding - needs: [get-runner-labels] - runs-on: ${{ fromJSON(needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS) }} - steps: - - uses: actions/checkout@v4 - - name: Init env - uses: ./.github/actions/env - - uses: ./.github/actions/prepare-rspack-binding - with: - path: ${{ env.RSPACK_DIR }} + # prepare-binding: + # name: Prepare Rspack Binding + # needs: [get-runner-labels] + # runs-on: ${{ fromJSON(needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS) }} + # steps: + # - uses: actions/checkout@v4 + # - name: Init env + # uses: ./.github/actions/env + # - uses: ./.github/actions/prepare-rspack-binding + # with: + # path: ${{ env.RSPACK_DIR }} bench: - needs: prepare-binding + # needs: prepare-binding + needs: [get-runner-labels] runs-on: [self-hosted, benchmark] timeout-minutes: 30 strategy: @@ -47,11 +48,16 @@ jobs: uses: actions/checkout@v4 - name: Init env uses: ./.github/actions/env - - uses: ./.github/actions/build-rspack + # - uses: ./.github/actions/build-rspack + # with: + # path: ${{ env.RSPACK_DIR }} + # - name: Run benchmark + # run: node bin/cli.js bench --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} + - name: Run benchmarks + uses: CodSpeedHQ/action@v3 with: - path: ${{ env.RSPACK_DIR }} - - name: Run benchmark - run: node bin/cli.js bench --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} + run: pnpm exec vitest bench + token: ${{ secrets.CODSPEED_TOKEN }} - id: print-compare-results name: Print compare results run: | diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml deleted file mode 100644 index 2c8ad41d..00000000 --- a/.github/workflows/codspeed.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: CodSpeed - -on: - push: - branches: - - "main" # or "master" - pull_request: - # `workflow_dispatch` allows CodSpeed to trigger backtest - # performance analysis in order to generate initial data. - workflow_dispatch: - -jobs: - benchmarks: - name: Run benchmarks - runs-on: ubuntu-latest - steps: - - uses: "actions/checkout@v4" - - uses: "actions/setup-node@v3" - - name: Install dependencies - run: npm install - - name: Run benchmarks - uses: CodSpeedHQ/action@v3 - with: - run: npm exec vitest bench - token: ${{ secrets.CODSPEED_TOKEN }}