From af3586fa386434edde7e88bc28f6feca6a580694 Mon Sep 17 00:00:00 2001 From: Christian Heimlich Date: Sun, 1 Sep 2024 21:23:31 -0400 Subject: [PATCH] Ensure OpenMP is available --- .github/workflows/build-project.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build-project.yml b/.github/workflows/build-project.yml index ac71ffe..9397616 100644 --- a/.github/workflows/build-project.yml +++ b/.github/workflows/build-project.yml @@ -19,3 +19,15 @@ jobs: uses: oblivioncth/actions/.github/workflows/build-cxx-project.yml@v1 secrets: ffynnon_access: ${{ secrets.OBYBOT_FFYNNON_ACCESS }} + with: + pre_build_steps: | + - name: Install OpenMP lib [Linux] + if: env.run_is_linux == 'true' + run: | + if($Env:run_compiler.StartsWith('g++-')) { + sudo apt install libgomp1 + } elseif {$Env:run_compiler.StartsWith('clang++-') { + $ver = $Env:run_compiler -replace 'clang++-' + $pkg = "libomp-${ver}-dev" + sudo apt install $pkg + }