Skip to content

Commit

Permalink
Disable OpenMP on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Feb 21, 2024
1 parent 3875445 commit b591080
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci_tests_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
ref: ${{ matrix.gmt_git_ref }}
path: 'gmt'

- name: Compile and install GMT ${{ matrix.gmt_git_ref }} branch (Linux/macOS)
- name: Compile and install GMT ${{ matrix.gmt_git_ref }} branch (Linux)
run: |
cd gmt/
mkdir build
Expand All @@ -103,7 +103,25 @@ jobs:
rm -rf gmt/
env:
GMT_INSTALL_DIR: ${{ runner.temp }}/gmt-install-dir
if: runner.os != 'Windows'
if: runner.os == 'Linux'

- name: Compile and install GMT ${{ matrix.gmt_git_ref }} branch (macOS)
run: |
cd gmt/
mkdir build
cd build
cmake -G Ninja .. \
-DCMAKE_INSTALL_PREFIX=${{ env.GMT_INSTALL_DIR }} \
-DCMAKE_BUILD_TYPE=Release \
-DGMT_ENABLE_OPENMP=FALSE \
-DGMT_USE_THREADS=FALSE
cmake --build .
cmake --build . --target install
cd ..
rm -rf gmt/
env:
GMT_INSTALL_DIR: ${{ runner.temp }}/gmt-install-dir
if: runner.os == 'macOS'

- name: Compile and install GMT ${{ matrix.gmt_git_ref }} branch (Windows)
shell: cmd
Expand Down

0 comments on commit b591080

Please sign in to comment.