use NEON distance function if running on aarch64 #319
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
BUILD_TYPE: Release | |
HAMMING_WITH_SSE2: OFF | |
HAMMING_WITH_AVX2: OFF | |
HAMMING_WITH_AVX512: OFF | |
HAMMING_WITH_OPENMP: OFF | |
jobs: | |
build-and-test: | |
name: Testing on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: macos-arm64-ssc | |
open-mp: "OFF" | |
neon: "ON" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
allow-prereleases: true | |
- name: make build directory | |
run: cmake -E make_directory ${{runner.workspace}}/build | |
- name: configure cmake | |
shell: bash | |
working-directory: ${{runner.workspace}}/build | |
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTING=ON -DHAMMING_BUILD_BENCHMARKS=ON -DHAMMING_WITH_SSE2=$HAMMING_WITH_SSE2 -DHAMMING_WITH_AVX2=$HAMMING_WITH_AVX2 -DHAMMING_WITH_AVX512=$HAMMING_WITH_AVX512 -DHAMMING_WITH_NEON=${{ matrix.neon }} -DHAMMING_BUILD_PYTHON=ON -DHAMMING_WITH_OPENMP=${{ matrix.open-mp }} | |
- name: build | |
shell: bash | |
working-directory: ${{runner.workspace}}/build | |
run: cmake --build . | |
- name: run tests | |
shell: bash | |
working-directory: ${{runner.workspace}}/build | |
run: ctest | |
- name: run benchmarks | |
shell: bash | |
working-directory: ${{runner.workspace}}/build | |
run: ./src/bench |