-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up commit -- make path dependent on os
- Loading branch information
1 parent
3ec7659
commit a7ebde5
Showing
1 changed file
with
15 additions
and
6 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,15 @@ jobs: | |
if: runner.os == 'Windows' | ||
uses: microsoft/[email protected] | ||
|
||
- name: Setup Visual Studio Developer Command Prompt | ||
if: runner.os == 'Windows' | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
- name: Install Windows development tools | ||
if: runner.os == 'Windows' | ||
run: | | ||
choco install visualstudio2019buildtools visualstudio2019-workload-vctools cmake | ||
- name: Setup C++ toolchain (macOS) | ||
if: runner.os == 'macOS' | ||
run: | | ||
|
@@ -63,13 +72,13 @@ jobs: | |
CIBW_BEFORE_BUILD: > | ||
python -c "import utils; utils.GeosLibrary('${{ env.GEO_VERSION }}').build('extern', njobs=16)" | ||
CIBW_ENVIRONMENT: > | ||
GEOS_DIR=/project/extern | ||
CPATH=/projectextern/include | ||
LIBRARY_PATH=/project/extern/lib | ||
LD_LIBRARY_PATH=/project/extern/lib | ||
SETUPTOOLS_USE_DISTUTILS=stdlib | ||
GEOS_DIR=${{ github.workspace }}${{ runner.os == 'Windows' && '\\extern' || '/extern' }} | ||
CFLAGS=-I${{ github.workspace }}${{ runner.os == 'Windows' && '\\extern\\include' || '/extern/include' }} | ||
LDFLAGS=-L${{ github.workspace }}${{ runner.os == 'Windows' && '\\extern\\lib' || '/extern/lib' }} | ||
CIBW_TEST_COMMAND: > | ||
cd {project} && python -m pytest --cov="mpl_toolkits.basemap" | ||
cd {project} | ||
pip install pytest | ||
python -m pytest --cov="mpl_toolkits.basemap" | ||
--cov-report=term --ignore=dist --ignore=build | ||
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-*" | ||
run: | | ||
|