Skip to content

Commit 871eaff

Browse files
committed
Add workflow to test openMP SIMD
1 parent c7d4912 commit 871eaff

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/openmp.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: OpenMP SIMD Build - FLOAT=${{ matrix.float }},
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
# The CMake build type
7+
BUILD_TYPE: Release
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
float: [ON, OFF]
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Check out repository
20+
uses: actions/checkout@v2
21+
with:
22+
submodules: 'recursive'
23+
24+
- name: Setup Environment
25+
run: cmake -E make_directory ${{ runner.workspace }}/build
26+
27+
- name: Configure
28+
shell: bash
29+
working-directory: ${{ runner.workspace }}/build
30+
run: cmake --warn-uninitialized -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DQDLDL_UNITTESTS=ON -DQDLDL_FLOAT=${{ matrix.float }} -DCOVERAGE=OFF -DQDLDL_ENABLE_OPENMP_SIMD=ON $GITHUB_WORKSPACE
31+
32+
- name: Build
33+
shell: bash
34+
working-directory: ${{ runner.workspace }}/build
35+
run: cmake --build . --config $BUILD_TYPE
36+
37+
- name: Run tests
38+
shell: bash
39+
working-directory: ${{ runner.workspace }}/build
40+
run: ctest -C $BUILD_TYPE

0 commit comments

Comments
 (0)