Merge pull request #602 from kiwix/macos_arm64_tools

This commit is contained in:
Matthieu Gautier 2023-04-28 09:35:02 +02:00 committed by GitHub
commit 34363684c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -22,15 +22,21 @@ def select_build_target():
if OS_NAME == "bionic" and PLATFORM_TARGET.endswith("_mixed"):
return ("libzim", )
elif (PLATFORM_TARGET.startswith("android_")
or PLATFORM_TARGET.startswith("iOS")
or PLATFORM_TARGET.startswith("macOS")):
or PLATFORM_TARGET.startswith("iOS")):
return ("libzim", "libkiwix")
elif PLATFORM_TARGET.startswith("macOS"):
if PLATFORM_TARGET.endswith("_mixed"):
return ("libzim", "libkiwix")
elif PLATFORM_TARGET.endswith("_dyn"):
return ("zim-tools", "kiwix-tools")
else:
return []
elif PLATFORM_TARGET.startswith("native_"):
if OS_NAME == "osx":
if PLATFORM_TARGET.endswith("_mixed"):
return ("libzim", "libkiwix")
else:
return ("zim-tools", )
return ("zim-tools", "kiwix-tools")
else:
if DESKTOP:
return ("kiwix-desktop",)

View File

@ -177,6 +177,7 @@ jobs:
- native_dyn
- native_static
- native_mixed
- macOS_arm64_static
- macOS_arm64_mixed
runs-on: macos-12
env: