File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 31
31
- name : Setup rust
32
32
run : rustup default ${{ matrix.rust-version }}
33
33
34
+ - name : Setup pnpm
35
+ uses : pnpm/action-setup@v4
36
+ with :
37
+ version : latest
38
+
39
+ - name : Setup nodejs
40
+ run : pnpm env use --global lts
41
+
34
42
- name : Build default features
35
43
run : cargo build --workspace
36
44
- name : Test default features
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ mod frontend {
19
19
println ! ( "cargo:rerun-if-changed=rsbuild.config.ts" ) ;
20
20
println ! ( "cargo:rerun-if-changed=frontend" ) ;
21
21
22
+ let status = Command :: new ( "pnpm" )
23
+ . arg ( "install" )
24
+ . arg ( "--frozen-lockfile" )
25
+ . status ( )
26
+ . expect ( "Failed to execute pnpm install" ) ;
27
+
28
+ if !status. success ( ) {
29
+ panic ! ( "pnpm install failed with status: {:?}" , status) ;
30
+ }
31
+
22
32
let status = Command :: new ( "pnpm" )
23
33
. arg ( "build" )
24
34
. status ( )
You can’t perform that action at this time.
0 commit comments