Skip to content

Commit 35136cf

Browse files
committed
Fix build system issues: vitest alignment, tsconfig paths, CI actions, yarn build
- Align bugc vitest/coverage/ui versions from ^2.1.8 to ^3.2.4 to match all other packages and root; update deprecated `threads: false` to `pool: "forks"` for vitest 3 compatibility - Add missing tsconfig paths for #evmgen/program-builder and #irgen/debug/variables in bugc (were in package.json imports but missing from tsconfig, breaking IDE resolution) - Fix `yarn build` to generate schema yamls.ts before tsc, so it works on fresh clones without a prior `yarn install` - Update GitHub Actions from v3 to v4 across all CI workflows (checkout and setup-node)
1 parent 1b3b94b commit 35136cf

File tree

8 files changed

+41
-198
lines changed

8 files changed

+41
-198
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
lint-and-format:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010

11-
- uses: actions/setup-node@v3
11+
- uses: actions/setup-node@v4
1212
with:
1313
node-version: 20
1414
cache: yarn
@@ -26,9 +26,9 @@ jobs:
2626
run-tests:
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030

31-
- uses: actions/setup-node@v3
31+
- uses: actions/setup-node@v4
3232
with:
3333
node-version: 20
3434
cache: yarn
@@ -43,9 +43,9 @@ jobs:
4343
build-web:
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v4
4747

48-
- uses: actions/setup-node@v3
48+
- uses: actions/setup-node@v4
4949
with:
5050
node-version: 20
5151
cache: yarn

.github/workflows/deploy-pr-previews.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
deploy-preview:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

16-
- uses: actions/setup-node@v3
16+
- uses: actions/setup-node@v4
1717
with:
1818
node-version: 20
1919
cache: yarn

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111

12-
- uses: actions/setup-node@v3
12+
- uses: actions/setup-node@v4
1313
with:
1414
node-version: 20
1515
cache: yarn

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"packages/*"
66
],
77
"scripts": {
8-
"build": "tsc --build packages/format packages/pointers packages/evm packages/bugc packages/programs-react packages/pointers-react",
8+
"build": "yarn --cwd packages/format prepare:yamls && tsc --build packages/format packages/pointers packages/evm packages/bugc packages/programs-react packages/pointers-react",
99
"bundle": "tsx ./bin/bundle-schema.ts",
1010
"test": "vitest",
1111
"test:coverage": "vitest run --coverage",

packages/bugc/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@
8585
"@hyperjump/json-schema": "^1.11.0",
8686
"@types/node": "^20.0.0",
8787
"@types/parsimmon": "^1.10.9",
88-
"@vitest/coverage-v8": "^2.1.8",
89-
"@vitest/ui": "^2.1.8",
88+
"@vitest/coverage-v8": "^3.2.4",
89+
"@vitest/ui": "^3.2.4",
9090
"eslint": "^8.0.0",
9191
"ethereum-cryptography": "^3.2.0",
9292
"fast-check": "^4.2.0",
9393
"prettier": "^3.5.3",
9494
"tsx": "^4.19.4",
9595
"typescript": "^5.0.0",
96-
"vitest": "^2.1.8",
96+
"vitest": "^3.2.4",
9797
"yaml": "^2.8.2"
9898
},
9999
"dependencies": {

packages/bugc/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"#evmgen/generation": ["./src/evmgen/generation"],
2929
"#evmgen/serialize": ["./src/evmgen/serialize"],
3030
"#evmgen/pass": ["./src/evmgen/pass"],
31+
"#evmgen/program-builder": ["./src/evmgen/program-builder"],
3132

3233
"#ir": ["./src/ir/index"],
3334
"#ir/spec": ["./src/ir/spec"],
@@ -38,6 +39,7 @@
3839
"#irgen/errors": ["./src/irgen/errors"],
3940
"#irgen/type": ["./src/irgen/type"],
4041
"#irgen/generate": ["./src/irgen/generate/index"],
42+
"#irgen/debug/variables": ["./src/irgen/debug/variables"],
4143

4244
"#optimizer": ["./src/optimizer/index"],
4345
"#optimizer/*": ["./src/optimizer/*"],

packages/bugc/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default defineConfig({
44
test: {
55
globals: true,
66
environment: "node",
7-
threads: false,
7+
pool: "forks",
88
coverage: {
99
provider: "v8",
1010
reporter: ["text", "json", "html"],

0 commit comments

Comments
 (0)