12
12
uses : actions/checkout@v2
13
13
- name : Checkout Rust-Lightning and LDK-C-Bindings git
14
14
run : |
15
- cd ci
15
+ cd bindings/LDK
16
+ ls -ll
17
+ cd ../../ci
16
18
git config --global user.email "[email protected] "
17
19
git config --global user.name "LDK CI"
18
20
# Note this is a different endpoint, as we need one non-upstream commit!
62
64
- name : Generate (copy for debugging) Swift bindings and copy batteries
63
65
run : |
64
66
pwd
65
- python ./ # Generate bindings
67
+ python ./ # Generate bindings into ci subdirectory
66
68
67
69
# TODO: switch back to generation method after debugging
68
70
# mkdir -p ci/LDKSwift/Sources/LDKSwift
@@ -72,12 +74,13 @@ jobs:
72
74
env :
73
75
LDK_SWIFT_GENERATOR_INPUT_HEADER_PATH : ci/ldk-c-bindings/lightning-c-bindings/include/lightning.h
74
76
LDK_SWIFT_GENERATOR_OUTPUT_DIRECTORY_PATH : ci/LDKSwift/Sources/LDKSwift
75
- - name : Debug generated Swift bindings directory structure
76
- run : |
77
- python ci/walker.py bindings/LDK
78
77
- name : Check that the latest auto-generated Swift files are in the repo
79
78
run : |
79
+ python ./ # Generate bindings into local directory
80
+ python ci/walker.py bindings/LDK
80
81
git diff --exit-code bindings/LDK ':(exclude)bindings/LDK/Bindings.swift'
82
+ env :
83
+ LDK_SWIFT_GENERATOR_INPUT_HEADER_PATH : ci/ldk-c-bindings/lightning-c-bindings/include/lightning.h
81
84
- name : Fix Swift files
82
85
run : |
83
86
cd ci
@@ -126,6 +129,8 @@ jobs:
126
129
with :
127
130
name : ci_archive
128
131
path : ci
132
+ - name : Set up Python
133
+ uses : actions/setup-python@v2
129
134
- name : Install Swift Toolchain
130
135
run : |
131
136
curl --verbose -L -o swift-5.6-RELEASE-ubuntu20.04.tar.gz https://download.swift.org/swift-5.6-release/ubuntu2004/swift-5.6-RELEASE/swift-5.6-RELEASE-ubuntu20.04.tar.gz
@@ -147,7 +152,7 @@ jobs:
147
152
run : |
148
153
python ci/toggle_address_sanitation_library.py on
149
154
cd ci/LDKSwift
150
- ../swift-5.6-RELEASE-ubuntu20.04/usr/bin/swift test -v
155
+ ../../ swift-5.6-RELEASE-ubuntu20.04/usr/bin/swift test -v
151
156
env :
152
157
LDK_C_BINDINGS_BASE : /home/runner/work/ldk-swift/ldk-swift/ci/ldk-c-bindings
153
158
LLVM_CLANG_ASAN_PATH : /usr/lib/llvm-11/lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a
0 commit comments