Skip to content

Commit f5e8b6b

Browse files
Update readme
1 parent 5dac5b2 commit f5e8b6b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ release-${1}: | clean-js js
5959
cargo $$(BUILD_ARG) --target $$(TARGET_linux_$$(RELEASE_ARCH_NAME_${1})) --features lambda -vv
6060
./pack target/$$(TARGET_linux_$$(RELEASE_ARCH_NAME_${1}))/release/llrt target/$$(TARGET_linux_$$(RELEASE_ARCH_NAME_${1}))/release/bootstrap
6161
@rm -rf llrt-lambda-${1}.zip
62-
zip -j llrt-lambda-${1}.zip target/$$(TARGET_linux_$$(RELEASE_ARCH_NAME_${1}))/release/bootstrap index.mjs
62+
zip -j llrt-lambda-${1}.zip target/$$(TARGET_linux_$$(RELEASE_ARCH_NAME_${1}))/release/bootstrap
6363

6464
llrt-lambda-${1}: release-${1}
6565
endef

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ B) Without the JIT overhead, LLRT conserves both CPU and memory resources that c
178178

179179
## Building from source
180180

181+
Clone code and cd to directory
182+
183+
git clone git@github.com:awslabs/llrt.git --recursive
184+
cd llrt
185+
181186
Install rust
182187

183188
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
@@ -191,15 +196,6 @@ Install dependencies
191196
# Ubuntu
192197
sudo apt -y install make zstd
193198
sudo snap install zig --classic --beta
194-
195-
Install cargo zigbuild
196-
197-
cargo install cargo-zigbuild
198-
199-
Clone code and cd to directory
200-
201-
git clone git@github.com:awslabs/llrt.git --recursive
202-
cd llrt
203199

204200
Install Node.js packages
205201

@@ -210,12 +206,16 @@ Install generate libs and setup rust targets & toolchains
210206

211207
make stdlib && make libs
212208

213-
Build release
209+
Build release for Lambda
214210

215211
make release-arm64
216212
# or for x86, use
217213
make release-x86
218214

215+
Optionally build for your local machine (Mac or Linux)
216+
217+
make release
218+
219219
You should now have a `llrt-lambda-arm64.zip` or `llrt-lambda-x86.zip`. You can manually upload this as a Lambda layer or use it via your Infrastructure-as-code pipeline
220220

221221
## Running Lambda emulator

0 commit comments

Comments
 (0)