diff --git a/.github/workflows/cmake-macos-build.yml b/.github/workflows/cmake-macos-build.yml new file mode 100644 index 0000000..9ee77c8 --- /dev/null +++ b/.github/workflows/cmake-macos-build.yml @@ -0,0 +1,29 @@ +name: Interference NDK (macOS) + +on: [push, pull_request] + +jobs: + build: + # Используем актуальный образ macOS (Intel или Apple Silicon) + runs-on: macos-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: Configure CMake + run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release + + - name: Build project + run: cmake --build build --config Release + + - name: Install project + run: cmake --install build + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: indk-macos-arm64-clang + path: dist/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c49ce8..37ef887 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,12 @@ function(build_indk LIBTYPE) include_directories(deps/facefull-bridge/include) find_package(Threads REQUIRED) - target_link_libraries(${PROJECT_NAME}${LIBTYPE} Threads::Threads -latomic) + target_link_libraries(${PROJECT_NAME}${LIBTYPE} Threads::Threads) + + if (NOT APPLE) + target_link_libraries(${PROJECT_NAME}${LIBTYPE} -latomic) + endif() + target_link_libraries(${PROJECT_NAME}${LIBTYPE} ${CMAKE_CURRENT_BINARY_DIR}/deps/facefull-bridge/libfacefull-bridge_static.a) if (WIN32) diff --git a/README.md b/README.md index 4b52f10..1ca1d27 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,11 @@ Cross-platform C++ library - universal neurobiology-based machine learning frame Version 3.1.0
+[](https://github.com/nickware-group/interference/actions/workflows/cmake-windows-build.yml) + [](https://github.com/nickware-group/interference/actions/workflows/cmake-linux-build.yml) -[](https://github.com/nickware-group/interference/actions/workflows/cmake-windows-build.yml) +[](https://github.com/nickware-group/interference/actions/workflows/cmake-macos-build.yml) ---------------------------------------------------------------- ### WHAT IS INTERFERENCE NDK @@ -30,6 +32,7 @@ This framework is highly scalable. It is suitable for both powerful computing cl |:------------------------------:|:---:|:-------:|:--------:|:---:| | **Windows** | + | + | | | | **Linux** | + | + | + | + | +| **MacOS** | + | + | | | | **QNX** | + | | + | | ---------------------------------------------------------------- @@ -170,5 +173,5 @@ All files will be in `dist` directory. #### Windows Just run `build.cmd` script. -#### Linux +#### Linux / MacOS Just run `build.sh` script. diff --git a/samples/vision/main.cpp b/samples/vision/main.cpp index b176cf8..2372747 100644 --- a/samples/vision/main.cpp +++ b/samples/vision/main.cpp @@ -9,6 +9,7 @@ #include