Skip to content

Commit 8652d69

Browse files
testing build
1 parent 99499c3 commit 8652d69

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build-zauth.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,17 @@ jobs:
4141
- name: Build zauth
4242
run: |
4343
cd libs/libzauth/libzauth-c
44-
rustup target add aarch64-apple-darwin
4544
export CC=$OSXCROSS_TARGET/bin/aarch64-apple-darwin24.5-clang
45+
export CXX=$OSXCROSS_TARGET/bin/aarch64-apple-darwin24.5-clang++
46+
export AR=$OSXCROSS_TARGET/bin/aarch64-apple-darwin24.5-ar
47+
export SDKROOT=$OSXCROSS_TARGET/SDK/MacOSX${SDK_VERSION}.sdk
48+
export MACOSX_DEPLOYMENT_TARGET=11.0
49+
export CFLAGS="-isysroot $SDKROOT -arch arm64 -mmacosx-version-min=11.0"
50+
export LDFLAGS="-isysroot $SDKROOT -arch arm64"
51+
export PKG_CONFIG_ALLOW_CROSS=1
52+
export OSXCROSS_NO_INCLUDE_PATHS=1
4653
export CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=$CC
47-
cargo build --release --target aarch64-apple-darwin
54+
cargo build --release --target aarch64-apple-darwin --verbose
4855
4956
- name: List built binaries
5057
run: ls -lh libs/libzauth/libzauth-c/target/aarch64-apple-darwin/release

0 commit comments

Comments
 (0)