Skip to content

Commit 6c8ef13

Browse files
committed
Split build into asan and without
1 parent 537f1d4 commit 6c8ef13

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/swift.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,9 @@ jobs:
9494
- name: Verify generated output recency
9595
run: |
9696
git diff --exit-code out/ ':(exclude)out/VersionDescriptor.swift'
97-
- name: Build Swift bindings package
97+
- name: Build Swift bindings package without address sanitizer
9898
run: |
9999
cd ci/LDKSwift
100-
# should be /usr/lib/llvm-18/lib/clang/18/lib/linux/libclang_rt.asan-x86_64.a
101-
export LLVM_CLANG_ASAN_PATH="$(clang -print-resource-dir)/lib/linux/libclang_rt.asan-x86_64.a"
102100
../../swift-5.7.2-RELEASE-ubuntu22.04/usr/bin/swift build
103101
env:
104102
LDK_C_BINDINGS_BASE: ${{ github.workspace }}/ci/ldk-c-bindings
@@ -110,6 +108,15 @@ jobs:
110108
env:
111109
LDK_C_BINDINGS_BASE: ${{ github.workspace }}/ci/ldk-c-bindings
112110
RUST_BACKTRACE: 1
111+
- name: Build Swift bindings package with address sanitizer
112+
run: |
113+
cd ci/LDKSwift
114+
# should be /usr/lib/llvm-18/lib/clang/18/lib/linux/libclang_rt.asan-x86_64.a
115+
export LLVM_CLANG_ASAN_PATH="$(clang -print-resource-dir)/lib/linux/libclang_rt.asan-x86_64.a"
116+
../../swift-5.7.2-RELEASE-ubuntu22.04/usr/bin/swift build
117+
env:
118+
LDK_C_BINDINGS_BASE: ${{ github.workspace }}/ci/ldk-c-bindings
119+
RUST_BACKTRACE: 1
113120
- name: Test Swift bindings package with address sanitizer
114121
continue-on-error: true
115122
run: |

0 commit comments

Comments
 (0)