Skip to content

Commit 9e33843

Browse files
fix CI
1 parent 8cacf30 commit 9e33843

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
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++
@@ -51,7 +51,7 @@ jobs:
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
# ------------------------

0 commit comments

Comments
 (0)