Skip to content

Commit

Permalink
skip testing in mac m1
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries committed Apr 9, 2024
1 parent fbbe495 commit e517a89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recipes/android-ndk/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from conan import ConanFile
from conan.tools.cmake import CMake, cmake_layout
from conan.tools.build import cross_building
from conan.tools.build import can_run
import os


Expand All @@ -24,7 +24,8 @@ def build(self):

def test(self):
# INFO: can_run allows mac M1, but it does not work for the NDK
if not cross_building(self):
# https://github.com/android/ndk/issues/1299
if can_run(self) and not (self.settings.os == "Macos" and self.settings.arch == "armv8"):
if self.settings.os == "Windows":
self.run("ndk-build.cmd --version")
else:
Expand Down

0 comments on commit e517a89

Please sign in to comment.