File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 c_compiler : cl
2525 cpp_compiler : cl
2626
27- # Windows GCC (MinGW) — just for fun
27+ # Windows GCC (MinGW)
2828 - os : windows-latest
2929 c_compiler : gcc
3030 cpp_compiler : g++
5151 c_compiler : clang
5252 cpp_compiler : clang++
5353
54- # macOS (use Homebrew LLVM for OpenMP support )
54+ # macOS (Homebrew LLVM for OpenMP)
5555 - os : macos-latest
5656 c_compiler : clang
5757 cpp_compiler : clang++
@@ -70,28 +70,30 @@ jobs:
7070 - os : macos-latest
7171 c_compiler : cl
7272
73-
7473 steps :
7574 - uses : actions/checkout@v4
7675
7776 # ------------------------
78- # Linux OpenMP
77+ # Install OpenMP everywhere
7978 # ------------------------
8079 - name : Install OpenMP (Ubuntu)
81- if : matrix.os == 'ubuntu-latest'
80+ if : startsWith( matrix.os, 'ubuntu')
8281 run : |
8382 sudo apt-get update
8483 sudo apt-get install -y libomp-dev
8584
86- # ------------------------
87- # macOS OpenMP
88- # ------------------------
8985 - name : Install OpenMP + LLVM (macOS)
9086 if : matrix.os == 'macos-latest'
9187 run : |
9288 brew update
9389 brew install llvm libomp
9490
91+ - name : Install MinGW with OpenMP (Windows GCC)
92+ if : matrix.os == 'windows-latest' && matrix.c_compiler == 'gcc'
93+ run : |
94+ choco install mingw -y
95+ # MinGW-w64 includes OpenMP headers/libraries
96+
9597 # ------------------------
9698 # Set reusable strings
9799 # ------------------------
You can’t perform that action at this time.
0 commit comments