@@ -21,19 +21,14 @@ jobs:
21
21
# Note this is a different endpoint, as we need one non-upstream commit!
22
22
# git clone https://git.bitcoin.ninja/rust-lightning
23
23
# git clone https://github.com/TheBlueMatt/rust-lightning
24
- # git clone --branch 2021-03-java-bindings-base https://github.com/TheBlueMatt/rust-lightning
25
- git clone --branch 2022-05-107-bindings-scratch https://github.com/TheBlueMatt/rust-lightning
24
+ git clone --branch 2022-06-108-java-bindings https://github.com/TheBlueMatt/rust-lightning
26
25
cd rust-lightning
27
- # git checkout origin/2021-03-java-bindings-base
28
- # git checkout v0.0.100
29
- # git checkout 8966f8d3d4911e034621c6d3c3d20140d3a7e76a
30
26
echo "rust-lightning commit hash:"
31
27
git rev-parse HEAD
32
28
cd ..
33
- # git clone https://github.com/lightningdevkit/ldk-c-bindings
34
- git clone https://github.com/TheBlueMatt/ldk-c-bindings
29
+ git clone --branch https://github.com/lightningdevkit/ldk-c-bindings
30
+ # git clone https://github.com/TheBlueMatt/ldk-c-bindings
35
31
cd ldk-c-bindings
36
- # git checkout 1bb5ae1b34aeb74009b7b4b5ebefc957cddc30a6
37
32
echo "ldk-c-bindings commit hash:"
38
33
git rev-parse HEAD
39
34
- name : Install native Rust toolchain, Valgrind, and build utilities
59
54
cp ldk-c-bindings/ldk-net/ldk_net.c ./LDKSwift/Sources/LDKHeaders/
60
55
- name : Set up Python
61
56
uses : actions/setup-python@v2
62
- - name : Fix header files
63
- run : |
64
- cd ci
65
- python ./fix_header_includes.py
66
57
- name : Generate (copy for debugging) Swift bindings and copy batteries
67
58
run : |
68
59
pwd
@@ -71,22 +62,16 @@ jobs:
71
62
# TODO: switch back to generation method after debugging
72
63
# mkdir -p ci/LDKSwift/Sources/LDKSwift
73
64
# cp -a bindings/LDK/. ci/LDKSwift/Sources/LDKSwift
74
-
75
- cp -R bindings/batteries ci/LDKSwift/Sources/LDKSwift
76
65
env :
77
66
LDK_SWIFT_GENERATOR_INPUT_HEADER_PATH : ci/ldk-c-bindings/lightning-c-bindings/include/lightning.h
78
- LDK_SWIFT_GENERATOR_OUTPUT_DIRECTORY_PATH : ci/LDKSwift/Sources/LDKSwift
67
+ LDK_SWIFT_GENERATOR_OUTPUT_DIRECTORY_PATH : ci/LDKSwift/Sources/LDKSwift/bindings
79
68
- name : (Suspended) Check that the latest auto-generated Swift files are in the repo
80
69
run : |
81
70
python ./ # Generate bindings into local directory
82
71
# python ci/walker.py bindings/LDK
83
72
# git diff --exit-code bindings/LDK ':(exclude)bindings/LDK/Bindings.swift'
84
73
env :
85
74
LDK_SWIFT_GENERATOR_INPUT_HEADER_PATH : ci/ldk-c-bindings/lightning-c-bindings/include/lightning.h
86
- - name : Fix Swift files
87
- run : |
88
- cd ci
89
- python ./fix_swift_imports.py
90
75
- name : Install Swift Toolchain
91
76
run : |
92
77
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
0 commit comments