35
35
cd ..
36
36
- name : Install Swift Toolchain
37
37
run : |
38
- pwd
39
- cd ci
40
38
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
41
39
echo "Sha sum: $(sha256sum swift-5.6-RELEASE-ubuntu20.04.tar.gz | awk '{ print $1 }')"
42
40
if [ "$(sha256sum swift-5.6-RELEASE-ubuntu20.04.tar.gz | awk '{ print $1 }')" != "${EXPECTED_SWIFT_SHASUM}" ]; then
61
59
pwd
62
60
./genbindings.sh ../rust-lightning true
63
61
cd ..
62
+ - name : Check that the latest headers are in the swift repo
63
+ run : |
64
+ git diff --no-index --exit-code ci/bindings/LDK bindings/LDK
64
65
- name : Debug bindings target directory structure
65
66
run : |
66
67
cd ci
@@ -102,7 +103,7 @@ jobs:
102
103
- name : Build Swift bindings package
103
104
run : |
104
105
cd ci/LDKSwift
105
- ../swift-5.6-RELEASE-ubuntu20.04/usr/bin/swift build
106
+ ../../ swift-5.6-RELEASE-ubuntu20.04/usr/bin/swift build
106
107
env :
107
108
LDK_C_BINDINGS_BASE : /home/runner/work/ldk-swift/ldk-swift/ldk-c-bindings
108
109
LLVM_CLANG_ASAN_PATH : /usr/lib/llvm-11/lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a
@@ -111,7 +112,7 @@ jobs:
111
112
run : |
112
113
python ci/toggle_address_sanitation_library.py off
113
114
cd ci/LDKSwift
114
- ../swift-5.6-RELEASE-ubuntu20.04/usr/bin/swift test -v
115
+ ../../ swift-5.6-RELEASE-ubuntu20.04/usr/bin/swift test -v
115
116
env :
116
117
LDK_C_BINDINGS_BASE : /home/runner/work/ldk-swift/ldk-swift/ci/ldk-c-bindings
117
118
LLVM_CLANG_ASAN_PATH : /usr/lib/llvm-11/lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a
@@ -121,9 +122,6 @@ jobs:
121
122
with :
122
123
name : ci_archive
123
124
path : ci
124
- - name : Check that the latest headers are in the swift repo
125
- run : |
126
- git diff --exit-code
127
125
128
126
test_bindings_with_sanitizer :
129
127
runs-on : ubuntu-20.04
@@ -134,6 +132,18 @@ jobs:
134
132
with :
135
133
name : ci_archive
136
134
path : ci
135
+ - name : Install Swift Toolchain
136
+ run : |
137
+ 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
138
+ echo "Sha sum: $(sha256sum swift-5.6-RELEASE-ubuntu20.04.tar.gz | awk '{ print $1 }')"
139
+ if [ "$(sha256sum swift-5.6-RELEASE-ubuntu20.04.tar.gz | awk '{ print $1 }')" != "${EXPECTED_SWIFT_SHASUM}" ]; then
140
+ echo "Bad hash"
141
+ echo "Contents: \n$(cat swift-5.6-RELEASE-ubuntu20.04.tar.gz)"
142
+ exit 1
143
+ fi
144
+ tar xvvf swift-5.6-RELEASE-ubuntu20.04.tar.gz
145
+ env :
146
+ EXPECTED_SWIFT_SHASUM : 3f0d926bfc08eea00a69b1d992f2ab5e08155d97476096a3ef959fe7c4cbd58b
137
147
- name : Install Valgrind and build utilities
138
148
run : |
139
149
sudo apt-get update
0 commit comments