Commit 8fae5c47 authored by Chunchi Che's avatar Chunchi Che

fix ci

parent 12904264
Pipeline #20654 failed with stages
in 10 minutes and 47 seconds
......@@ -37,14 +37,25 @@ rs_lint:
- rustup component add clippy
- cd rust-src && cargo clippy -- -Dwarnings
npm_build:
extends: .build_base
wasm_build:
stage: build
image: rust:latest
before_script:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
script:
- cd rust-src && wasm-pack build
artifacts:
paths:
- rust-src/pkg
npm_build:
extends:
- .build_base
- wasm_build
stage: build
tags:
- linux
before_script:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
script:
- mv neos.config.prod.json neos.config.json
- npm run build:prod
......
......@@ -36,8 +36,8 @@
"scripts": {
"wasm": "cd rust-src && wasm-pack build",
"dev": "npm run wasm && vite",
"build": "npm run wasm && tsc && vite build && cp -r neos-assets dist/",
"build:prod": "npm run wasm && tsc && vite build --base=https://cdn02.moecube.com:444/neos/",
"build": "tsc && vite build && cp -r neos-assets dist/",
"build:prod": "tsc && vite build --base=https://cdn02.moecube.com:444/neos/",
"preview": "vite preview",
"lint": "eslint --ext .ts --ext .tsx src",
"fmt": "eslint --ext .ts --ext .tsx src --fix && cd rust-src && cargo fmt",
......
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