-
Notifications
You must be signed in to change notification settings - Fork 343
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
Azure Pipelines CI for Windows via conda #651
Conversation
conda list | ||
displayName: Install dependencies via conda | ||
|
||
- bash: echo "##vso[task.setvariable variable=INSTALLDIR]D:/a/1/s/gmt-install-dir" |
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.
Here, I use D:/a/1/s
rather than $BUILD_SOURCEDIRECTORY
(D:\a\1\s).
If $BUILD_SOURCEDIRECTORY
is used, then
GMT->session.SHAREDIR = D:��s/gmt-install-dir/share
and gmt will fail to find some files in share directory.
ci/build-gmt-windows.sh
Outdated
mkdir -p build && cd build | ||
|
||
# Configure | ||
cmake .. -G "Visual Studio 15 2017 Win64" -DCMAKE_PREFIX_PATH=${CONDA}/Library |
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.
-DCMAKE_PREFIX_PATH=${CONDA}/Library
is necessary to let cmake know where to find the DLL files.
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.
Is there any way to do parallel builds? I'm surprised that it takes so much longer to compile on Windows on a Microsoft platform.
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.
Ninja does parallel builds. That's what I use.
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 tried ninja once but failed. Have you tried Ninja on your machine? @joa-quim
Maybe try setting the GMT home directory to |
I'm not sure on how I can help here. I see that the build fails because
though this is not completely new for me (I think I remember to have had people asking me about some similar problem), I never had it, so hard to debug. Regarding the |
The windows build passes now. It takes ~16 minutes. |
90d3a68
to
9a2a8f2
Compare
@leouieda Now the Windows build takes ~9 minutes. |
* Improve documentation of Figure.logo() - Fix a broken link to gmtlogo documentation - Add option **-V** - Remove option **-p** (not listed in the documentation) - Add option **-S** (new in GMT 6.0) - Option **-D** is no longer required (tested with GMT>=6.1.1) - Remove the test for **-D** Co-authored-by: Wei Ji <[email protected]>
This PR adds the azure-pipelines CI for Windows. The dependencies (netcdf, gdal, et al.) are installed via conda.
The compilation takes about 12 minutes. And the simple tests all passed except the last one.