Skip to content

Commit

Permalink
feat: use self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Dec 18, 2024
1 parent 87f1c66 commit 9eb88aa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 41 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/codspeed.yml

This file was deleted.

0 comments on commit 9eb88aa

Please sign in to comment.