-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Migrate Windows CI to GitHub Actions. #6312
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -356,7 +356,6 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-intel -wd10237 -Wall -ipo -fPIC") | ||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") | ||
# using Visual Studio C++ | ||
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} zlib) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj") # avoid compiler error C1128 from scripting_environment_lua.cpp | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DWIN32_LEAN_AND_MEAN") # avoid compiler error C2011 from dual #include of winsock.h and winsock2.h | ||
add_dependency_defines(-DBOOST_LIB_DIAGNOSTIC) | ||
|
@@ -446,6 +445,11 @@ add_subdirectory(${FLATBUFFERS_SRC_DIR} | |
${CMAKE_CURRENT_BINARY_DIR}/flatbuffers-build | ||
EXCLUDE_FROM_ALL) | ||
|
||
# see https://stackoverflow.com/questions/70898030/boost-link-error-using-conan-find-package | ||
if (MSVC) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's add this to the file too, for future reference. |
||
add_definitions(-DBOOST_ALL_NO_LIB) | ||
endif() | ||
|
||
if(ENABLE_CONAN) | ||
message(STATUS "Installing dependencies via Conan") | ||
|
||
|
@@ -462,6 +466,16 @@ if(ENABLE_CONAN) | |
set(CONAN_TBB_VERSION 2020.3) | ||
|
||
set(CONAN_SYSTEM_INCLUDES ON) | ||
|
||
# TODO: | ||
# if we link TBB dynamically osrm-extract.exe finishes on the first access to any TBB symbol | ||
# with exit code = -1073741515, which means that program cannot load required DLL. | ||
if (MSVC) | ||
set(TBB_SHARED False) | ||
else() | ||
set(TBB_SHARED True) | ||
endif() | ||
|
||
conan_cmake_run( | ||
REQUIRES | ||
boost/${CONAN_BOOST_VERSION} | ||
|
@@ -475,6 +489,7 @@ if(ENABLE_CONAN) | |
KEEP_RPATHS | ||
NO_OUTPUT_DIRS | ||
OPTIONS boost:filesystem_version=3 # https://stackoverflow.com/questions/73392648/error-with-boost-filesystem-version-in-cmake | ||
tbb:shared=${TBB_SHARED} | ||
) | ||
|
||
add_dependency_includes(${CONAN_INCLUDE_DIRS_BOOST}) | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,15 @@ | ||
environment: | ||
matrix: | ||
- configuration: Release | ||
# - configuration: Debug | ||
|
||
install: | ||
- ps: Install-Product node 6 | ||
|
||
# scripts that are called at very beginning, before repo cloning | ||
init: | ||
- git config --global core.autocrlf input | ||
|
||
os: Visual Studio 2019 | ||
|
||
# clone directory | ||
clone_folder: c:\projects\osrm | ||
|
||
platform: x64 | ||
|
||
# no-op for the time being until someone with access to GitHub checks settings will remove integration with AppVeyor | ||
# https://github.com/Project-OSRM/osrm-backend/pull/6312#issuecomment-1217237055 | ||
build_script: | ||
- CALL appveyor-build.bat | ||
|
||
before_test: | ||
- node --version | ||
- npm --version | ||
- npm install --ignore-scripts | ||
- npm link --ignore-scripts | ||
- SET PATH=%CD%\osrm-deps\lib;%PATH% | ||
- SET OSRM_BUILD_DIR=build\%Configuration% | ||
# TODO tests fail with "JavaScript heap out of memory", need a better host? | ||
# - npm test | ||
- EXIT 0 | ||
|
||
branches: | ||
only: | ||
- master | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot about this with the Docker job.
ci-complete is the meta-job that PRs will block merging on. We should add
windows
anddocker
to the list ofneeds
, in the unlikely case that all the Linux/Mac jobs succeed before those two complete/fail.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, will do. Btw while we are waiting for someone to disable Appveyor check, may be just return that job and make it no-op(i.e. always green?). It would unblock this PR from being merged and would allow to work on other PRs which depend on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea 👍