-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (24 loc) · 854 Bytes
/
Makefile
File metadata and controls
28 lines (24 loc) · 854 Bytes
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
27
28
build-all-extensions:
@echo "Building all extensions"
make build-and-deploy-llrt
make build-and-deploy-rust
build-and-deploy-llrt:
@echo "Building and deploying LLRT"
cd llrt && \
zip -r extension.zip . && \
aws lambda publish-layer-version --layer-name "llrt-extension" --zip-file "fileb://extension.zip" --compatible-architectures arm64 --output json --no-cli-pager && \
rm extension.zip
build-and-deploy-rust:
@echo "Building and deploying Rust"
cargo lambda build --manifest-path rust/Cargo.toml --extension --release --arm64 && \
cargo lambda deploy --manifest-path rust/Cargo.toml --extension
configure-app:
@echo "Configuring SLS application"
cd battle-extensions-app && \
sam build && \
sam deploy --guided
deploy-app:
@echo "Building and deploying SLS application"
cd battle-extensions-app && \
sam build && \
sam deploy