Skip to content

disable openmp on windows #4

disable openmp on windows

disable openmp on windows #4

Workflow file for this run

name: CMake portable build
on:
push:
branches:
- cmake
- cmake2
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Conan
id : conan
uses: turtlebrowser/get-conan@main
- name: Cache conan artifacts
id: conan-artifacts
uses: actions/cache@v4
with:
path: ~/.conan2
key: ${{ runner.os }}-conan
- name: Create default profile
run: conan profile detect || echo ok
shell: bash
- name: Install all delegates
run: conan install . -of build --build=missing
- name: Generate CMake build (POSIX)
run: cd build && cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
if: runner.os != 'Windows'
- name: Generate CMake build (Windows)
run: |
cd build
conanbuild.bat
cmake .. -G "Visual Studio 15 2017" -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake"
shell: cmd
if: runner.os == 'Windows'
- name: Build
run: cmake --build build