31 lines
590 B
YAML
31 lines
590 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
when:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
- tag
|
|
|
|
steps:
|
|
|
|
- name: build (rust)
|
|
image: rust:1.81-bookworm
|
|
commands:
|
|
- cargo test --verbose --all
|
|
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
- (cd um_wasm && wasm-pack build --release --target web --out-dir ../um_wasm_loader/pkg)
|
|
|
|
- name: build (node)
|
|
image: node:22.9-bookworm
|
|
environment:
|
|
NPM_TOKEN:
|
|
from_secret: NPM_TOKEN
|
|
commands:
|
|
- corepack enable
|
|
- cd um_wasm_loader
|
|
- pnpm i
|
|
- BUILD_SKIP_WASM_PACK=1 pnpm build
|
|
- ./ci_publish.sh
|