From ecff510fcbe010da623d97fc03f83610c77ebb4c Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 25 May 2023 22:36:36 +0200 Subject: [PATCH] Add windows cmake CI test Signed-off-by: falkTX --- .github/workflows/cmake.yml | 21 +++++++++++++++------ cmake/CMakeLists.txt | 4 +++- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 42d7ef4a0..07a9759ed 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -21,9 +21,9 @@ jobs: run: | brew install cmake fluid-synth liblo libmagic libsndfile pkg-config - name: configure - run: cmake -S cmake -B cmake + run: cmake -S cmake -B build - name: build - run: make -C cmake -j $(sysctl -n hw.logicalcpu) + run: cmake --build build -j $(sysctl -n hw.logicalcpu) ubuntu-20_04: runs-on: ubuntu-20.04 @@ -34,9 +34,9 @@ jobs: sudo apt-get update -qq sudo apt-get install -yqq cmake libfluidsynth-dev liblo-dev libmagic-dev libsndfile1-dev libx11-dev pkg-config - name: configure - run: cmake -S cmake -B cmake + run: cmake -S cmake -B build - name: build - run: make -C cmake -j $(nproc) + run: cmake --build build -j $(nproc) ubuntu-22_04: runs-on: ubuntu-22.04 @@ -47,6 +47,15 @@ jobs: sudo apt-get update -qq sudo apt-get install -yqq cmake libfluidsynth-dev liblo-dev libmagic-dev libsndfile1-dev libx11-dev pkg-config - name: configure - run: cmake -S cmake -B cmake + run: cmake -S cmake -B build - name: build - run: make -C cmake -j $(nproc) + run: cmake --build build -j $(nproc) + + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: configure + run: cmake -S cmake -B build + - name: build + run: cmake --build build diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 9a13ea775..147527651 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -124,7 +124,9 @@ function(set_common_target_properties TARGET) target_compile_options(${TARGET} PRIVATE - $<$:/wd4244 /wd4267 /wd4273> + $<$:/wd4244> + $<$:/wd4267> + $<$:/wd4273> ) target_link_options(${TARGET}