lib_um_crypto_rust/.drone.yml

37 lines
694 B
YAML
Raw Normal View History

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:11:09 +00:00
depends_on:
- "build (wasm_pack)"
2024-09-24 19:34:29 +00:00
commands:
- corepack enable pnpm
- 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