Commit cc3a866c authored by Chunchi Che's avatar Chunchi Che

fix ci

parent e4071a13
Pipeline #20687 failed with stages
in 1 minute and 25 seconds
...@@ -28,7 +28,11 @@ ts_check: ...@@ -28,7 +28,11 @@ ts_check:
stage: check stage: check
tags: tags:
- linux - linux
script: npx tsc before_script:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
script:
- wasm-pack build ./rust-src --target web
- npx tsc
rs_check: rs_check:
stage: check stage: check
...@@ -63,7 +67,7 @@ wasm_build: ...@@ -63,7 +67,7 @@ wasm_build:
before_script: before_script:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
script: script:
- cd rust-src && wasm-pack build - wasm-pack build ./rust-src --target web
artifacts: artifacts:
paths: paths:
- rust-src/pkg - rust-src/pkg
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
"sql.js": "^1.8.0", "sql.js": "^1.8.0",
"vite-plugin-svgr": "^2.4.0", "vite-plugin-svgr": "^2.4.0",
"web-vitals": "^2.1.4", "web-vitals": "^2.1.4",
"ygopro-deck-encode": "^1.0.3" "ygopro-deck-encode": "^1.0.3",
"rust-src": "file:rust-src/pkg"
}, },
"scripts": { "scripts": {
"wasm": "wasm-pack build ./rust-src --target web", "wasm": "wasm-pack build ./rust-src --target web",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment