Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: OSX build
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -e -l {0}
jobs:
build:
runs-on: macos-${{ matrix.os }}
name: macos-${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- 14
- 15

steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Set conda environment
uses: mamba-org/setup-micromamba@main
with:
environment-name: myenv
environment-file: environment-dev.yml
init-shell: bash
cache-downloads: true

- name: Configure using CMake
run: cmake -B build -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DBUILD_TESTS=ON

- name: Install
working-directory: build
run: cmake --install .

- name: Build
working-directory: build
run: cmake --build . --target test_xsimd_algorithm --parallel 8

- name: Run tests
working-directory: build/test
run: ./test_xsimd_algorithm
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ endif()
# =====

set(XSIMDALGO_HEADERS
${XSIMDALGO_INCLUDE_DIR}/xsimd_algo/algorithms.hpp
${XSIMDALGO_INCLUDE_DIR}/xsimd_algorithm/algorithms.hpp
)

add_library(xsimd-algorithm INTERFACE)
Expand Down Expand Up @@ -56,7 +56,7 @@ install(TARGETS xsimd-algorithm
export(EXPORT ${PROJECT_NAME}-targets
FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake")

install(DIRECTORY ${XSIMDALGO_INCLUDE_DIR}/xsimd_algo
install(DIRECTORY ${XSIMDALGO_INCLUDE_DIR}/xsimd_algorithm
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

set(XSIMDALGO_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME}" CACHE
Expand Down
Loading