Skip to content

feat: add simplify_polygon_hull method #509

feat: add simplify_polygon_hull method

feat: add simplify_polygon_hull method #509

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
# This allows a subsequently queued workflow run to interrupt previous runs.
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
Test:
strategy:
fail-fast: false
matrix:
ruby:
- head
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- "jruby"
os:
- ubuntu
# Windows users, feel free to open a PR :)
# - windows
- macos
exclude:
- os: windows # See issue #242, windows support would be welcome.
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ matrix.ruby == 'head' || matrix.os == 'windows' || matrix.os == 'macos' }}
name: Ruby ${{ matrix.ruby }} (${{ matrix.os }})
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install Geos (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)
if: matrix.os == 'macos'
run: HOMEBREW_NO_INSTALL_CLEANUP=1 brew install geos
- name: Install Geos (Windows)
if: matrix.os == 'windows'
run: TODO
- name: Bundle Install
run: bundle install
- name: Set Maintainer Mode
if: ${{ github.event.pull_request }}
run: export MAINTAINER_MODE='-Wold-style-definition'
- name: Test
run: bundle exec rake
Memcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: Install dependencies
run: |
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get install -yqq libgeos-dev valgrind
- name: Test & Memcheck
run: bundle exec rake test:valgrind
RuboCop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 'head'
bundler-cache: true
- run: |
bundle exec rubocop --color --parallel
clang-format:
# NOTE: you could update that tag to `-latest` when the new ubuntu LTS
# is released. Nowadays, `-latest` would point to 20.04 which has an
# outdated clang-format package.
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install clang-format
run: sudo apt-get install -yqq clang-format
- name: Show version
run: clang-format --version
- name: Run clang-format
run: bin/clang-format lint