forked from strangelove-ventures/heighliner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composable.yaml
26 lines (26 loc) · 1.75 KB
/
composable.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Composable
- name: composable
github-organization: ComposableFi
github-repo: composable
dockerfile: cargo
build-target: |
apt install -y zlib1g-dev:${TARGETARCH}
TOOLCHAIN=$(cat rust-toolchain.toml | grep channel | awk '{print $3}' | tr -d '"')
rustup component add rust-src --toolchain ${TOOLCHAIN}-$(uname -m)-unknown-linux-gnu
rustup target add wasm32-unknown-unknown
cd code
cargo build --release -p wasm-optimizer
cargo build --release -p composable-runtime-wasm --target wasm32-unknown-unknown
cargo build --release -p picasso-runtime-wasm --target wasm32-unknown-unknown
cargo build --release -p dali-runtime-wasm --target wasm32-unknown-unknown
./target/release/wasm-optimizer --input ./target/wasm32-unknown-unknown/release/dali_runtime.wasm --output ./target/wasm32-unknown-unknown/release/dali_runtime.optimized.wasm
./target/release/wasm-optimizer --input ./target/wasm32-unknown-unknown/release/picasso_runtime.wasm --output ./target/wasm32-unknown-unknown/release/picasso_runtime.optimized.wasm
./target/release/wasm-optimizer --input ./target/wasm32-unknown-unknown/release/composable_runtime.wasm --output ./target/wasm32-unknown-unknown/release/composable_runtime.optimized.wasm
cargo build --release -p composable -Zbuild-std --features=builtin-wasm
build-dir: code
build-env:
- DALI_RUNTIME=/build/composable/code/target/wasm32-unknown-unknown/release/dali_runtime.optimized.wasm
- PICASSO_RUNTIME=/build/composable/code/target/wasm32-unknown-unknown/release/picasso_runtime.optimized.wasm
- COMPOSABLE_RUNTIME=/build/composable/code/target/wasm32-unknown-unknown/release/composable_runtime.optimized.wasm
binaries:
- /build/composable/code/target/${ARCH}-unknown-linux-gnu/release/composable