Skip to content
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

Test against a specific geos version #355

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
54 changes: 37 additions & 17 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,51 @@ jobs:
- "jruby"
os:
- ubuntu
# Windows users, feel free to open a PR :)
# - windows
- macos
exclude:
- os: windows # See issue #242, windows support would be welcome.
geos:
- '3.11.2'
- '3.10.5'
- '3.9.4'
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ matrix.ruby == 'head' || matrix.os == 'windows' || matrix.os == 'macos' }}
name: Ruby ${{ matrix.ruby }} (${{ matrix.os }})
continue-on-error: ${{ matrix.ruby == 'head' || matrix.os == 'macos' }}
name: Ruby ${{ matrix.ruby }}, Geos ${{ matrix.geos }} (${{ matrix.os }})
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
- uses: actions/cache@v2
id: geos-cache
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install Geos (Linux)
path: ./geos-${{ matrix.geos }}
key: geos-${{ matrix.geos }}-os-${{ matrix.os }}-cmake-version
- name: Install Packages (Linux)
if: matrix.os == 'ubuntu'
run: |
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get install -yqq libgeos-dev
- name: Install Geos (Mac)
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get install curl libcurl4-openssl-dev libssl-dev cmake
- name: Install Packages (Mac)
if: matrix.os == 'macos'
run: HOMEBREW_NO_INSTALL_CLEANUP=1 brew install geos
- name: Install Geos (Windows)
if: matrix.os == 'windows'
run: TODO
run: brew install cmake
- name: Download and Compile Geos
if: steps.geos-cache.outputs.cache-hit != 'true'
run: |
wget -c https://download.osgeo.org/geos/geos-${{ matrix.geos }}.tar.bz2
tar -xf geos-${{ matrix.geos }}.tar.bz2
cd geos-${{ matrix.geos }}
mkdir build
cd build
cmake ..
cmake --build .
cd ../../
- name: Install Geos
run: |
cd geos-${{ matrix.geos }}/build
cmake ..
cmake --build .
sudo cmake --build . --target install
cd ../../
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Bundle Install
run: bundle install
- name: Set Maintainer Mode
Expand Down