#!/bin/bash set -e SCRIPT=$0 EXAMPLE=$1 EXEC=$2 if [ $# -eq 0 ] || [ "$EXAMPLE" != "https" ] && [ "$EXAMPLE" != "grpcs" ]; then echo "usage: $SCRIPT https|grpcs [--run]" exit 1 fi FEATURES=$(if [ "$EXAMPLE" == "https" ]; then echo "actix-web,occlum"; else echo "tonic,occlum"; fi) occlum-cargo build --release --example mratls_"${EXAMPLE}"_server --features="$FEATURES" strip target/x86_64-unknown-linux-musl/release/examples/mratls_"${EXAMPLE}"_server cat > server.yaml <