From 04c63c5af9f55c28c42a022eb1c50fe8dba7d8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Tue, 24 Sep 2024 22:11:09 +0100 Subject: [PATCH] ci: parallel test and build --- .drone.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c7c5e9a..fa54900 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,10 +10,14 @@ when: steps: -- name: build (rust) +- 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) @@ -22,6 +26,8 @@ steps: environment: NPM_TOKEN: from_secret: NPM_TOKEN + depends_on: + - "build (wasm_pack)" commands: - corepack enable - cd um_wasm_loader