diff options
| author | capellancitizen <thecapellancitizen@gmail.com> | 2024-08-28 20:10:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-28 20:10:46 -0400 |
| commit | f8a093ea306ce01f45936c6b34065ab57f6ccded (patch) | |
| tree | 2c81368900a795b4cb63a2cdfeaf4e6b9ca313bb /bin | |
| parent | d26ec2187427d68193748eeb534a03cc6ba9d2ea (diff) | |
Additional CI Improvements (#3174)
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/build-linux (renamed from bin/build-linux-dist) | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bin/build-linux-dist b/bin/build-linux index 5b591f71..c7014658 100755 --- a/bin/build-linux-dist +++ b/bin/build-linux @@ -17,13 +17,16 @@ export PATH=$GEOS_PATH/bin:$PATH export GEOS_INCLUDE_PATH=$GEOS_PATH/include export GEOS_LIBRARY_PATH=$GEOS_PATH/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GEOS_PATH/lib +if [ ! -z "$CI" ]; then + # Write the geos path to GITHUB_PATH so successive steps can use + echo $GEOS_PATH/bin >> $GITHUB_PATH + # Set these variables in GITHUB_ENV so successive steps can use them. + echo "GEOS_INCLUDE_PATH=$GEOS_INCLUDE_PATH" >> $GITHUB_ENV + echo "GEOS_LIBRARY_PATH=$GEOS_LIBRARY_PATH" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV +fi + cd ../.. python -m pip uninstall -y shapely python -m pip cache remove shapely python -m pip install -v shapely --no-binary shapely -# Future improvement might be to split this out so pytest is a separate step and line on the build log, -# but the LD_LIBRARY_PATH env var needs to be passed between those steps with step outputs or something. -# This works for now. -pytest -make dist - |
