Skip to content

Commit b2d6a79

Browse files
committed
WIP: fixing failed workflow
1 parent 355e75f commit b2d6a79

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/ios_build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ jobs:
3636
~/.cargo/git
3737
target
3838
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
39-
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+
4046
- name: Build mycelmob
4147
run: bash build-ios.sh
4248
working-directory: mycelmob

mycelmob/build-ios.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
17
NAME="mycelmob"
28
HEADERPATH="out/${NAME}FFI.h"
39
TARGETDIR="target"

0 commit comments

Comments
 (0)