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 af3586f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit af3586f

Please sign in to comment.