Skip to content

Commit

Permalink
Ensure OpenMP is available
Browse files Browse the repository at this point in the history
  • Loading branch information
oblivioncth committed Sep 2, 2024
1 parent 727685f commit 19f1335
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,16 @@ 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'
shell: pwsh
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
}

0 comments on commit 19f1335

Please sign in to comment.