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
|
|
|
|
2024-09-24 21:11:09 +00:00
|
|
|
- name: test
|
2024-09-24 19:34:29 +00:00
|
|
|
image: rust:1.81-bookworm
|
2024-09-22 18:12:12 +00:00
|
|
|
commands:
|
|
|
|
- cargo test --verbose --all
|
2024-09-24 21:11:09 +00:00
|
|
|
|
|
|
|
- name: build (wasm_pack)
|
|
|
|
image: rust:1.81-bookworm
|
|
|
|
commands:
|
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 21:21:58 +00:00
|
|
|
COREPACK_ENABLE_AUTO_PIN: 0
|
|
|
|
BUILD_SKIP_WASM_PACK: 1
|
2024-09-24 21:11:09 +00:00
|
|
|
depends_on:
|
|
|
|
- "build (wasm_pack)"
|
2024-09-24 19:34:29 +00:00
|
|
|
commands:
|
2024-09-24 21:21:58 +00:00
|
|
|
- corepack enable
|
2024-09-24 19:41:36 +00:00
|
|
|
- cd um_wasm_loader
|
2024-09-24 19:34:29 +00:00
|
|
|
- pnpm i
|
2024-09-24 21:21:58 +00:00
|
|
|
- pnpm build
|
2024-09-24 21:04:45 +00:00
|
|
|
- ./ci_publish.sh
|