-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (57 loc) · 1.75 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
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: ubuntu-latest
open-mp: "ON"
neon: "OFF"
- os: macos-13
open-mp: "OFF"
neon: "OFF"
- os: macos-14
open-mp: "OFF"
neon: "ON"
- os: windows-latest
open-mp: "OFF"
neon: "OFF"
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions/setup-python@v5
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 -j2 --rerun-failed --output-on-failure