Skip to content

Commit cb6890a

Browse files
authored
Merge pull request #148 from TheBlueMatt/main
Build macOS binaries in the CI-built release C# Nupkg
2 parents 0a4ade7 + 27c5df0 commit cb6890a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
steps:
170170
- name: Install required dependencies
171171
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
173173
- name: Checkout source code
174174
uses: actions/checkout@v2
175175
with:
@@ -190,8 +190,13 @@ jobs:
190190
git clone https://github.com/lightningdevkit/ldk-c-bindings
191191
cd ldk-c-bindings
192192
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
193197
- name: Rebuild C bindings with STD
194198
run: |
199+
export MACOS_SDK="$PWD/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
195200
cd ldk-c-bindings
196201
export LDK_C_BINDINGS_EXTRA_TARGETS=x86_64-pc-windows-gnu
197202
export LDK_C_BINDINGS_EXTRA_TARGET_CCS=`pwd`/deterministic-build-wrappers/clang-x86_64-windows
@@ -207,6 +212,16 @@ jobs:
207212
run: |
208213
export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
209214
./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
210225
- name: Build Release NUPKG
211226
run: |
212227
cd c_sharp

0 commit comments

Comments
 (0)