Skip to content

Commit

Permalink
fix: bench suite only
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Mar 15, 2024
1 parent 5ada669 commit ecd4a29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

ci:
needs: prepare-binding
runs-on: ubuntu-latest
runs-on: [self-hosted, rspack-bench]
timeout-minutes: 30
strategy:
matrix:
Expand All @@ -43,12 +43,14 @@ jobs:
- threejs_development-mode_10x
- threejs_development-mode_10x_hmr
- threejs_production-mode_10x
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/build-rspack
- run: pnpm install
- name: Run benchmark
run: node bin/bench.js
run: node bin/bench.js ${{ matrix.suite }}
- id: print-compare-results
name: Print compare results
run: |
Expand Down
4 changes: 3 additions & 1 deletion lib/scenarios/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import {
getHmrConfig
} from "./utils.js";

const isGitHubActions = !!process.env.GITHUB_ACTIONS;

const rootDir = path.resolve(fileURLToPath(import.meta.url), "../../..");

async function runRspack(ctx) {
Expand Down Expand Up @@ -91,7 +93,7 @@ module.exports.plugins.push(new (require("../../lib/scenarios/build-plugin.cjs")
};
},
async generate(ctx) {
console.log("generate rspack config:");
console.log("Generate rspack config:");
console.log("```");
console.log(ctx.config);
console.log("```");
Expand Down

0 comments on commit ecd4a29

Please sign in to comment.