feat: add dev-packages

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2025-01-05 21:33:11 +01:00
parent 451270f64b
commit dee3421313
9 changed files with 828 additions and 5 deletions

View File

@@ -9,8 +9,23 @@ export AWS_ACCESS_KEY_ID=$(op read op://personal/minio.front.kjuulh.io/username)
export AWS_SECRET_ACCESS_KEY=$(op read op://personal/minio.front.kjuulh.io/password)
export AWS_REGION=eu-west-1
echo "processing: alloy"
echo "building rust project"
(cd alloy && cargo component build --release)
echo "upload"
aws s3 cp alloy/target/wasm32-wasip1/release/alloy.wasm s3://churn-registry/alloy/0.1.0/alloy.wasm --endpoint-url https://api-minio.front.kjuulh.io
if [[ $# -eq 0 ]]; then
print "Usage: $0 [arguments...]"
print "Please provide at least one argument"
exit 1
fi
for arg in $@; do
echo "building and uploading: $arg"
lowercase_arg=${arg//-/_}
echo "processing: $arg"
echo "building rust project"
(cd $arg && cargo component build --release)
echo "upload"
aws s3 cp $arg/target/wasm32-wasip1/release/$lowercase_arg.wasm s3://churn-registry/$lowercase_arg/0.1.0/$lowercase_arg.wasm --endpoint-url https://api-minio.front.kjuulh.io
done