From 871eaff42f8212dd8b15ae3fb29d079894acbccc Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Thu, 9 May 2024 23:03:19 +0100 Subject: [PATCH] Add workflow to test openMP SIMD --- .github/workflows/openmp.yaml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/openmp.yaml diff --git a/.github/workflows/openmp.yaml b/.github/workflows/openmp.yaml new file mode 100644 index 0000000..dc2c847 --- /dev/null +++ b/.github/workflows/openmp.yaml @@ -0,0 +1,40 @@ +name: OpenMP SIMD Build - FLOAT=${{ matrix.float }}, + +on: [push, pull_request] + +env: + # The CMake build type + BUILD_TYPE: Release + +jobs: + build: + strategy: + fail-fast: false + matrix: + float: [ON, OFF] + + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v2 + with: + submodules: 'recursive' + + - name: Setup Environment + run: cmake -E make_directory ${{ runner.workspace }}/build + + - name: Configure + shell: bash + working-directory: ${{ runner.workspace }}/build + 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 + + - name: Build + shell: bash + working-directory: ${{ runner.workspace }}/build + run: cmake --build . --config $BUILD_TYPE + + - name: Run tests + shell: bash + working-directory: ${{ runner.workspace }}/build + run: ctest -C $BUILD_TYPE