2024-09-22 18:12:12 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
2024-09-24 21:01:29 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
- tag
|
|
|
|
|
2024-09-22 18:12:12 +00:00
|
|
|
steps:
|
2024-09-24 19:34:29 +00:00
|
|
|
|
|
|
|
- name: build (rust)
|
|
|
|
image: rust:1.81-bookworm
|
2024-09-22 18:12:12 +00:00
|
|
|
commands:
|
|
|
|
- cargo test --verbose --all
|
2024-09-24 19:34:29 +00:00
|
|
|
- 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
|
2024-09-24 21:01:29 +00:00
|
|
|
environment:
|
|
|
|
NPM_TOKEN:
|
|
|
|
from_secret: NPM_TOKEN
|
2024-09-24 19:34:29 +00:00
|
|
|
commands:
|
|
|
|
- corepack enable
|
2024-09-24 19:41:36 +00:00
|
|
|
- cd um_wasm_loader
|
2024-09-24 19:34:29 +00:00
|
|
|
- pnpm i
|
|
|
|
- BUILD_SKIP_WASM_PACK=1 pnpm build
|
2024-09-24 21:04:45 +00:00
|
|
|
- ./ci_publish.sh
|