Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a CMake based Windows CI #2894

Merged
merged 15 commits into from
Mar 22, 2021

Conversation

jackgerrits
Copy link
Member

@jackgerrits jackgerrits commented Mar 18, 2021

This only build C++ and only runs the unit tests. But it is MUCH faster than the existing Windows CI so allows for faster issue turnaround time

run: ${{ env.VCPKG_ROOT }}/vcpkg.exe --triplet x64-windows install zlib boost-system boost-program-options boost-test boost-align boost-foreach boost-math flatbuffers
- name: Generate project files
run: |
cmake -S "${{ env.SOURCE_DIR }}" -B "${{ env.CMAKE_BUILD_DIR }}" -GNinja -DCMAKE_TOOLCHAIN_FILE="${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake" -DWARNINGS=Off -DUSE_LATEST_STD=On -DBUILD_FLATBUFFERS=On
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have warnings on?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason CMake add /W3 and we add /W4 and so it results in a message for every single file that we are overriding warnings

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah we just need to set the policy

@jackgerrits jackgerrits enabled auto-merge (squash) March 22, 2021 21:08
@jackgerrits jackgerrits merged commit 11de656 into VowpalWabbit:master Mar 22, 2021
@jackgerrits jackgerrits deleted the jagerrit/windows_cmake_ci branch April 15, 2021 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants