From 1ba74b39cdbb6ea3217ae0893e6e004dd9b552cb Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Fri, 27 Oct 2023 15:18:07 +0200 Subject: [PATCH] Add GitHub action for OpenMP Signed-off-by: Cristian Le --- .github/workflows/step_test.yaml | 3 +++ cmake/CMakePresets-CI.json | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/step_test.yaml b/.github/workflows/step_test.yaml index d0f2f6c..1d7763a 100644 --- a/.github/workflows/step_test.yaml +++ b/.github/workflows/step_test.yaml @@ -17,11 +17,14 @@ jobs: fail-fast: false matrix: toolchain: [ gcc, llvm, intel, windows, macos ] + openmp: [ ON, OFF ] include: - os: windows-latest toolchain: windows - os: macos-latest toolchain: macos + env: + WITH_OPENMP: ${{ matrix.openmp }} steps: - name: Enable msvc toolchain on windows uses: ilammy/msvc-dev-cmd@v1 diff --git a/cmake/CMakePresets-CI.json b/cmake/CMakePresets-CI.json index ceba312..86e547a 100644 --- a/cmake/CMakePresets-CI.json +++ b/cmake/CMakePresets-CI.json @@ -15,6 +15,10 @@ "GKLIB_TESTS": { "type": "BOOL", "value": true + }, + "GKLIB_OpenMP": { + "type": "BOOL", + "value": "$env{WITH_OPENMP}" } }, "errors": {