8
8
env :
9
9
TOOLCHAIN : stable
10
10
steps :
11
- - name : Install native Rust toolchain, Valgrind, and build utilitis
12
- run : |
13
- sudo apt-get update
14
- sudo apt-get -y dist-upgrade
15
- sudo apt-get -y install cargo valgrind lld git g++ clang curl
16
11
- name : Checkout source code
17
12
uses : actions/checkout@v2
18
- - name : Install cbindgen
19
- run : cargo install --force cbindgen
13
+ - name : Copy Swift bindings into sources
14
+ run : |
15
+ mkdir -p ci/LDKSwift/Sources/LDKSwift
16
+ cp -a bindings/LDK/. ci/LDKSwift/Sources/LDKSwift
17
+ cp -R bindings/batteries ci/LDKSwift/Sources/LDKSwift
20
18
- name : Checkout Rust-Lightning and LDK-C-Bindings git
21
19
run : |
22
20
git config --global user.email "[email protected] "
27
25
git checkout origin/2021-03-java-bindings-base
28
26
cd ..
29
27
git clone https://github.com/lightningdevkit/ldk-c-bindings
28
+ - name : Install native Rust toolchain, Valgrind, and build utilitis
29
+ run : |
30
+ sudo apt-get update
31
+ sudo apt-get -y dist-upgrade
32
+ sudo apt-get -y install cargo valgrind lld git g++ clang curl
33
+ - name : Install cbindgen
34
+ run : cargo install --force cbindgen
30
35
- name : Install Swift Toolchain
31
36
run : |
32
37
curl https://swift.org/builds/swift-5.4.2-release/ubuntu2004/swift-5.4.2-RELEASE/swift-5.4.2-RELEASE-ubuntu20.04.tar.gz > swift-5.4.2-RELEASE-ubuntu20.04.tar.gz
@@ -42,15 +47,12 @@ jobs:
42
47
cd ..
43
48
- name : Copy new headers into bindings
44
49
run : |
50
+ mkdir -p ci/LDKCHeaders/Headers/
45
51
cp ldk-c-bindings/lightning-c-bindings/include/*.h ci/LDKCHeaders/Headers/
46
52
cp ldk-c-bindings/ldk-net/ldk_net.h ci/LDKCHeaders/Headers/
47
53
- name : Fix header files
48
54
run : |
49
55
python ci/fix_header_includes.py
50
- - name : Copy Swift bindings into sources
51
- run : |
52
- cp -a bindings/LDK/. ci/LDKSwift/Sources/LDKSwift
53
- cp -R bindings/batteries ci/LDKSwift/Sources/LDKSwift
54
56
- name : Build and test bindings
55
57
run : |
56
58
cd ci/LDKSwift
0 commit comments