Skip to content

Commit

Permalink
Test against specific geos version
Browse files Browse the repository at this point in the history
  • Loading branch information
mylesboone committed Apr 2, 2023
1 parent b604c1c commit 560fbe1
Showing 1 changed file with 33 additions and 8 deletions.
41 changes: 33 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,48 @@ jobs:
os:
- ubuntu
- macos
geos:
- '3.11.2'
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ matrix.ruby == 'head' || matrix.os == 'macos' }}
name: Ruby ${{ matrix.ruby }} (${{ 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
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

0 comments on commit 560fbe1

Please sign in to comment.