47
47
48
48
steps :
49
49
- uses : actions/checkout@v4
50
+ - name : Install musl-tools
51
+ run : |
52
+ sudo apt-get update && sudo apt-get install -y musl-tools
50
53
51
54
- name : Install Rust
52
55
uses : actions-rust-lang/setup-rust-toolchain@v1
56
+ with :
57
+ target : x86_64-unknown-linux-musl
58
+ rustflags : -C target-feature=+crt-static -C linker=rust-lld
53
59
54
60
- name : Install Python
55
61
uses : actions/setup-python@v5
60
66
run : pip install cargo-lambda
61
67
62
68
- name : Build
63
- run : cargo lambda build
64
-
69
+ env :
70
+ RUSTFLAGS : -C target-feature=+crt-static -C linker=rust-lld
71
+ run : |
72
+ # Disable sanitizer features in dependencies
73
+ CARGO_FEATURE_SANITIZE=0 CARGO_FEATURE_SANITIZE_MEMORY=0 cargo lambda build --release --target x86_64-unknown-linux-musl
65
74
test_wasm :
66
75
name : Run Tests (WASM)
67
76
runs-on : ubuntu-latest
@@ -343,9 +352,15 @@ jobs:
343
352
steps :
344
353
- name : Checkout Current Branch (Fast)
345
354
uses : actions/checkout@v4
355
+ - name : Install musl-tools
356
+ run : |
357
+ sudo apt-get update && sudo apt-get install -y musl-tools
346
358
347
359
- name : Install Correct Toolchain
348
360
uses : actions-rust-lang/setup-rust-toolchain@v1
361
+ with :
362
+ target : x86_64-unknown-linux-musl
363
+ rustflags : -C target-feature=+crt-static -C linker=rust-lld
349
364
350
365
- name : Install Python
351
366
uses : actions/setup-python@v5
@@ -359,7 +374,10 @@ jobs:
359
374
env :
360
375
APP_VERSION : ${{ needs.draft_release.outputs.create_release_name }}
361
376
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
362
- run : cargo lambda build -p tailcall-aws-lambda --release --target x86_64-unknown-linux-musl
377
+ RUSTFLAGS : -C target-feature=+crt-static -C linker=rust-lld
378
+ run : |
379
+ # Disable sanitizer features in dependencies
380
+ CARGO_FEATURE_SANITIZE=0 CARGO_FEATURE_SANITIZE_MEMORY=0 cargo lambda build -p tailcall-aws-lambda --release --target x86_64-unknown-linux-musl
363
381
364
382
- name : Rename Binary with Target Name
365
383
run : |
0 commit comments