mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-07 20:19:51 +00:00
CI: Build and publish (#7)
Reviewed-on: https://git.unlock-music.dev/um/lib_um_crypto_rust/pulls/7 Co-authored-by: 鲁树人 <lu.shuren@um-react.app> Co-committed-by: 鲁树人 <lu.shuren@um-react.app>
This commit is contained in:
38
.drone.yml
Normal file
38
.drone.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
- tag
|
||||
|
||||
steps:
|
||||
|
||||
- name: test
|
||||
image: rust:1.81-bookworm
|
||||
commands:
|
||||
- cargo test --verbose --all
|
||||
|
||||
- name: build (wasm_pack)
|
||||
image: rust:1.81-bookworm
|
||||
commands:
|
||||
- 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
|
||||
COREPACK_ENABLE_AUTO_PIN: 0
|
||||
BUILD_SKIP_WASM_PACK: 1
|
||||
depends_on:
|
||||
- "build (wasm_pack)"
|
||||
commands:
|
||||
- corepack enable
|
||||
- cd um_wasm_loader
|
||||
- pnpm i
|
||||
- pnpm build
|
||||
- ./ci_publish.sh
|
||||
Reference in New Issue
Block a user