diff --git a/.github/workflows/c-demos.yml b/.github/workflows/c-demos.yml index 664878e..5ae45ae 100644 --- a/.github/workflows/c-demos.yml +++ b/.github/workflows/c-demos.yml @@ -83,7 +83,7 @@ jobs: arch: amd64 - os: macos-latest platform: mac - arch: x86_64 + arch: arm64 steps: - uses: actions/checkout@v3 diff --git a/demo/c/CMakeLists.txt b/demo/c/CMakeLists.txt index 3aeeac1..a0d59b3 100644 --- a/demo/c/CMakeLists.txt +++ b/demo/c/CMakeLists.txt @@ -26,7 +26,7 @@ if (NOT WIN32) pthread ${COMMON_LIBS}) target_link_libraries(eagle_demo_file ${COMMON_LIBS}) - if ((${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") AND (UNIX AND NOT APPLE)) + if ((${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64") AND (UNIX AND NOT APPLE)) target_link_libraries(eagle_demo_mic atomic) endif () -endif () \ No newline at end of file +endif ()