We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 355e75f commit b2d6a79Copy full SHA for b2d6a79
2 files changed
.github/workflows/ios_build.yml
@@ -36,7 +36,13 @@ jobs:
36
~/.cargo/git
37
target
38
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
39
-
+
40
+ - name: Setup iOS SDK env for bindgen
41
+ run: |
42
+ export SDKROOT=$(xcrun --sdk iphonesimulator --show-sdk-path)
43
+ echo "SDKROOT=$SDKROOT" >> $GITHUB_ENV
44
+ echo "BINDGEN_EXTRA_CLANG_ARGS=--sysroot=$SDKROOT" >> $GITHUB_ENV
45
46
- name: Build mycelmob
47
run: bash build-ios.sh
48
working-directory: mycelmob
mycelmob/build-ios.sh
@@ -1,3 +1,9 @@
1
+#!/usr/bin/env bash
2
+set -euxo pipefail
3
4
+export SDKROOT="${SDKROOT:-$(xcrun --sdk iphonesimulator --show-sdk-path)}"
5
+export BINDGEN_EXTRA_CLANG_ARGS="${BINDGEN_EXTRA_CLANG_ARGS:---sysroot=$SDKROOT}"
6
7
NAME="mycelmob"
8
HEADERPATH="out/${NAME}FFI.h"
9
TARGETDIR="target"
0 commit comments