Skip to content

Commit 9ce8aee

Browse files
authored
Merge pull request #4 from vvish/vvish/feat/osx_workflow
Reenabled verification workflow for OSX
2 parents 89635a8 + 861e172 commit 9ce8aee

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

.github/workflows/osx.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: OSX build
2+
on: [push, pull_request]
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
defaults:
7+
run:
8+
shell: bash -e -l {0}
9+
jobs:
10+
build:
11+
runs-on: macos-${{ matrix.os }}
12+
name: macos-${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- 14
18+
- 15
19+
20+
steps:
21+
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Set conda environment
26+
uses: mamba-org/setup-micromamba@main
27+
with:
28+
environment-name: myenv
29+
environment-file: environment-dev.yml
30+
init-shell: bash
31+
cache-downloads: true
32+
33+
- name: Configure using CMake
34+
run: cmake -B build -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DBUILD_TESTS=ON
35+
36+
- name: Install
37+
working-directory: build
38+
run: cmake --install .
39+
40+
- name: Build
41+
working-directory: build
42+
run: cmake --build . --target test_xsimd_algorithm --parallel 8
43+
44+
- name: Run tests
45+
working-directory: build/test
46+
run: ./test_xsimd_algorithm

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ endif()
2323
# =====
2424

2525
set(XSIMDALGO_HEADERS
26-
${XSIMDALGO_INCLUDE_DIR}/xsimd_algo/algorithms.hpp
26+
${XSIMDALGO_INCLUDE_DIR}/xsimd_algorithm/algorithms.hpp
2727
)
2828

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

59-
install(DIRECTORY ${XSIMDALGO_INCLUDE_DIR}/xsimd_algo
59+
install(DIRECTORY ${XSIMDALGO_INCLUDE_DIR}/xsimd_algorithm
6060
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
6161

6262
set(XSIMDALGO_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME}" CACHE

0 commit comments

Comments
 (0)