Browse Source

Add windows cmake CI test

Signed-off-by: falkTX <falktx@falktx.com>
pull/1780/head
falkTX 1 year ago
parent
commit
ecff510fcb
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 18 additions and 7 deletions
  1. +15
    -6
      .github/workflows/cmake.yml
  2. +3
    -1
      cmake/CMakeLists.txt

+ 15
- 6
.github/workflows/cmake.yml 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

+ 3
- 1
cmake/CMakeLists.txt 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}


Loading…
Cancel
Save