From 4ab869543fe648114030b12b5bd1f29c22571f5b Mon Sep 17 00:00:00 2001 From: Be Date: Sat, 7 Aug 2021 01:12:40 -0500 Subject: [PATCH] Add CMake build with MSVC to GitHub Action CI workflow --- .github/workflows/ci_cmake.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci_cmake.yml b/.github/workflows/ci_cmake.yml index 29b3eac844..5d8a598b7f 100644 --- a/.github/workflows/ci_cmake.yml +++ b/.github/workflows/ci_cmake.yml @@ -63,6 +63,11 @@ jobs: cmake_defines: -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_FIND_ROOT_PATH=/usr/local -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO cmake_samples: OFF cmake_tests: OFF + - name: Windows MSVC + runner: windows-latest + cmake_generator: Ninja + cmake_samples: SOME + cmake_tests: CONSOLE_ONLY env: wxGTK_VERSION: ${{ matrix.gtk_version && matrix.gtk_version || 3 }} @@ -74,6 +79,7 @@ jobs: submodules: 'recursive' - name: Set environment variables + shell: bash run: | wxPROC_COUNT=`./build/tools/proc_count.sh` if [ "${{ matrix.cmake_generator }}" == "Xcode" ]; then @@ -100,6 +106,11 @@ jobs: run: | ./build/tools/before_install.sh + # required for CMake to find Ninja + - name: "[Windows] Set up MSVC Developer Command Prompt" + if: runner.os == 'Windows' + uses: seanmiddleditch/gha-setup-vsdevenv@v3 + - name: Configuring run: | cmake --version