@@ -169,7 +169,7 @@ jobs:
169
169
steps :
170
170
- name : Install required dependencies
171
171
run : |
172
- dnf install -y mingw64-gcc git cargo dotnet clang llvm lld faketime rust-std-static-x86_64-pc-windows-gnu which diffutils
172
+ dnf install -y mingw64-gcc git cargo dotnet clang llvm lld faketime rust-std-static-x86_64-pc-windows-gnu which diffutils rust-src
173
173
- name : Checkout source code
174
174
uses : actions/checkout@v2
175
175
with :
@@ -190,8 +190,13 @@ jobs:
190
190
git clone https://github.com/lightningdevkit/ldk-c-bindings
191
191
cd ldk-c-bindings
192
192
git checkout 0.0.121
193
+ - name : Fetch MacOS SDK
194
+ run : |
195
+ curl -o Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz https://bitcoincore.org/depends-sources/sdks/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
196
+ tar xvvf Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
193
197
- name : Rebuild C bindings with STD
194
198
run : |
199
+ export MACOS_SDK="$PWD/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
195
200
cd ldk-c-bindings
196
201
export LDK_C_BINDINGS_EXTRA_TARGETS=x86_64-pc-windows-gnu
197
202
export LDK_C_BINDINGS_EXTRA_TARGET_CCS=`pwd`/deterministic-build-wrappers/clang-x86_64-windows
@@ -207,6 +212,16 @@ jobs:
207
212
run : |
208
213
export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
209
214
./genbindings.sh ./ldk-c-bindings/ c_sharp false false
215
+ - name : Build macOS x86-64 C# Bindings
216
+ run : |
217
+ export MACOS_SDK="$PWD/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
218
+ export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
219
+ CC=clang LDK_TARGET=x86_64-apple-darwin LDK_TARGET_CPU=sandybridge ./genbindings.sh ./ldk-c-bindings/ c_sharp false false
220
+ - name : Build macOS aarch64 C# Bindings
221
+ run : |
222
+ export MACOS_SDK="$PWD/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
223
+ export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
224
+ CC=clang LDK_TARGET=aarch64-apple-darwin LDK_TARGET_CPU=apple-a14 ./genbindings.sh ./ldk-c-bindings/ c_sharp false false
210
225
- name : Build Release NUPKG
211
226
run : |
212
227
cd c_sharp
0 commit comments