-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-7726: [CI] [C++] Use boost binaries on Windows GHA build #6325
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
Conversation
|
Before: 25 min total (https://github.com/apache/arrow/runs/417128878) |
.github/workflows/cpp.yml
Outdated
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.
Should we keep this step?
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 think it's useful to have system info in CI builds.
.github/workflows/cpp.yml
Outdated
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.
Should we update this when boost-msvc-14.1 is updated?
Can we detect this automatically?
Does this work?
diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml
index abc3b8f4d..4cccbdfd0 100644
--- a/.github/workflows/cpp.yml
+++ b/.github/workflows/cpp.yml
@@ -185,7 +185,11 @@ jobs:
submodules: true
- name: Build
shell: bash
- run: ci/scripts/cpp_build.sh $(pwd) $(pwd)/build
+ run: |
+ boost_root="$(echo /c/local/boost_* | head -n1)"
+ export BOOST_ROOT="c:\\local\\$(dirname ${boost_root})"
+ export BOOST_LIBRARYDIR="${BOOST_ROOT}\\lib64-msvc-14.1"
+ ci/scripts/cpp_build.sh $(pwd) $(pwd)/build
- name: Test
shell: bash
run: ci/scripts/cpp_test.sh $(pwd) $(pwd)/buildThere 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.
Hmm, I'll try 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.
I did this:
export BOOST_ROOT="$(ls -1 /c/local/boost_* | tail -n1)"
export BOOST_LIBRARYDIR="${BOOST_ROOT}\\lib64-msvc-14.1"
echo "BOOST_ROOT: ${BOOST_ROOT}"
and I got:
BOOST_ROOT: tools
:-O
I don't want to spend time debugging this (especially as Github Actions seems a bit slow today), so I'm gonna revert the change.
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.
OK. I'll take it over as a follow-up task.
9060c3e to
acb9383
Compare
acb9383 to
eb5db8f
Compare
This reverts commit eb5db8f.
kou
left a comment
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.
+1
|
I wonder why it's 2+GB, is it because of the static libraries I guess? |
|
Not sure. I think it bundles all versions (debug, etc.) of the libraries. |
The binaries are installed using Chocolatey, which takes a bit of time (it's a 2+GB install...), but less so than recompiling Boost from scratch during the CMake build. [skip appveyor] Closes #6325 from pitrou/ARROW-7726-download-boost-gha and squashes the following commits: e877622 <Antoine Pitrou> Revert "Try a more flexible way of finding Boost" eb5db8f <Antoine Pitrou> Try a more flexible way of finding Boost d570649 <Antoine Pitrou> ARROW-7726: Use boost binaries on Windows GHA build Authored-by: Antoine Pitrou <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
The binaries are installed using Chocolatey, which takes a bit of time (it's a 2+GB install...), but less so than recompiling Boost from scratch during the CMake build.
[skip appveyor]