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 9eb88aa commit d51ca04
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
# path: ${{ env.RSPACK_DIR }}

bench:
# needs: prepare-binding
# needs: [get-runner-labels, prepare-binding]
needs: [get-runner-labels]
runs-on: [self-hosted, benchmark]
runs-on: ${{ fromJSON(needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS) }}
timeout-minutes: 30
strategy:
matrix:
Expand Down
20 changes: 20 additions & 0 deletions arco-pro.bench.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { bench, describe } from "vitest";
import { rspack } from "@rspack/core";
import rspackConfig from './cases/10000/rspack.config';

describe("arco pro project", () => {
bench("build with development mode", () => new Promise((resolve, reject) => {
rspack({
...rspackConfig,
mode: "development"
}, (err, stats) => {
if (err) {
reject(err);
}
if (stats?.hasErrors()) {
reject(new Error(stats.toString({})));
}
resolve();
});
}));
});
1 change: 1 addition & 0 deletions cases/10000/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const ReactRefreshPlugin = require("@rspack/plugin-react-refresh");
const prod = process.env.NODE_ENV === "production";
/** @type {import("@rspack/cli").Configuration} */
module.exports = {
context: __dirname,
resolve: {
extensions: [".js", ".jsx"]
},
Expand Down
17 changes: 0 additions & 17 deletions fibo.bench.ts

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dependencies": {
"@actions/core": "^1.10.1",
"@icon-park/react": "^1.4.2",
"@rspack/core": "^1.1.6",
"@rspack/plugin-react-refresh": "1.0.0",
"meow": "^13.2.0",
"react": "^18.2.0",
Expand Down
137 changes: 137 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d51ca04

Please sign in to comment.