Add windows cmake CI test

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-05-25 22:36:36 +02:00
parent 8ae49ddf33
commit ecff510fcb
No known key found for this signature in database
GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 18 additions and 7 deletions

View File

@ -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

View File

@ -124,7 +124,9 @@ function(set_common_target_properties TARGET)
target_compile_options(${TARGET}
PRIVATE
$<$<BOOL:${MSVC}>:/wd4244 /wd4267 /wd4273>
$<$<BOOL:${MSVC}>:/wd4244>
$<$<BOOL:${MSVC}>:/wd4267>
$<$<BOOL:${MSVC}>:/wd4273>
)
target_link_options(${TARGET}