Skip to content

Catch Mixed-Dimension case and handle #2232

Catch Mixed-Dimension case and handle

Catch Mixed-Dimension case and handle #2232

Workflow file for this run

# GitHub Actions for GEOS
#
# Paul Ramsey <pramsey at cleverelephant dot ca>
# Based on AZP configuration by Mateusz Loskot <mateusz at loskot dot net>
name: 'CI'
on:
push:
pull_request: ~
jobs:
linux:
name: 'Linux'
strategy:
matrix:
ci:
- {
compiler: g++,
build_type: Coverage,
cxxstd: 11,
arch: 64,
packages: 'g++',
cmake: 3.15.*,
os: ubuntu-latest
}
# - {
# compiler: g++,
# build_type: Release,
# cxxstd: 11,
# arch: 32,
# packages: 'g++-4.8-multilib gcc-4.8-multilib g++-multilib gcc-multilib',
# cmake: 3.13.*,
# os: ubuntu-18.04
# }
- {
compiler: clang++,
build_type: Release,
cxxstd: 11,
arch: 64,
packages: 'clang',
cmake: 3.17.*,
os: ubuntu-latest
}
- {
compiler: clang++,
build_type: Release,
cxxstd: 11,
arch: 64,
packages: 'clang',
cmake: 3.17.*,
os: ubuntu-latest
}
- {
compiler: clang++,
build_type: Release,
cxxstd: 11,
arch: 64,
packages: 'g++',
cmake: 3.17.*,
cmake_extra: '-DDISABLE_GEOS_INLINE=ON',
os: ubuntu-latest
}
- {
compiler: clang++,
build_type: Debug,
cxxstd: 11,
arch: 64,
packages: 'clang',
cmake: 3.17.*,
os: ubuntu-20.04,
}
- {
compiler: clang++,
build_type: Release,
cxxstd: 14,
arch: 64,
packages: 'clang',
cmake: 3.17.*,
os: ubuntu-latest
}
runs-on: ${{ matrix.ci.os }}
steps:
- name: 'Install'
run: |
set -e
uname -a
sudo -E apt-get update
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install make doxygen python3-pip valgrind ${{ matrix.ci.packages }}
python3 -m pip install --disable-pip-version-check --user cmake==${{ matrix.ci.cmake }}
echo "$(python3 -m site --user-base)/bin" >> $GITHUB_PATH
- name: 'Check Out'
uses: actions/checkout@v3
- name: 'Build'
env:
CFLAGS: "-m${{ matrix.ci.arch }}"
CXXFLAGS: "-m${{ matrix.ci.arch }}"
run: |
set -e
mkdir build.cmake
cd build.cmake
cmake --version
cmake ${{ matrix.ci.cmake_extra }} -DCMAKE_CXX_COMPILER=${{ matrix.ci.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.ci.cxxstd }} -DBUILD_DOCUMENTATION=YES -DCMAKE_BUILD_TYPE=${{ matrix.ci.build_type }} ..
make -j 2
cmake --build . --target docs
- name: Test
run: |
set -e
cd build.cmake
ctest --output-on-failure .
# Run the all-unit-tests under
# the memory checker when we have Debug symbols
# available. Change to ^all to also check all-xml-tests
- name: Valgrind
if: matrix.ci.build_type == 'Debug'
run: |
set -e
cd build.cmake
ctest --output-on-failure \
--overwrite MemoryCheckCommandOptions="--leak-check=full --error-exitcode=100" \
-R ^all-unit -C Valgrind -T memcheck
- name: 'Upload Valgrind Log'
if: failure()
uses: actions/upload-artifact@v2
with:
name: valgrind-log
path: build.cmake/Testing/Temporary/MemoryChecker.**.log
retention-days: 1
- name: Upload Coverage to Codecov
if: matrix.ci.build_type == 'Coverage'
run: |
curl -o codecov.sh https://codecov.io/bash
bash codecov.sh
shell: bash
windows-mingw:
name: 'Windows (mingw-w64, Debug, 11, x86_64, windows-2019)'
runs-on: windows-2019
defaults:
run:
shell: msys2 {0}
steps:
- name: 'Check Out'
uses: actions/checkout@v3
- name: 'Setup'
uses: msys2/setup-msys2@v2
with:
install: mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake make
- name: 'Build'
run: |
mkdir build
cd build
cmake --version
cmake -DCMAKE_BUILD_TYPE=Debug -G"MSYS Makefiles" ..
cmake --build . -j 2
- name: 'Test'
run: |
cd build
ctest --output-on-failure .
windows-mingw-release:
name: 'Windows (mingw-w64, Release, 11, x86_64, windows-2019)'
runs-on: windows-2019
defaults:
run:
shell: msys2 {0}
steps:
- name: 'Check Out'
uses: actions/checkout@v3
- name: 'Setup'
uses: msys2/setup-msys2@v2
with:
install: mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake make
update: true
- name: 'Build'
run: |
mkdir build
cd build
cmake --version
cmake -DCMAKE_BUILD_TYPE=Release -G"MSYS Makefiles" ..
cmake --build . -j 2
- name: 'Test'
run: |
cd build
ctest --output-on-failure .
windows-msvc-22:
name: 'Windows (Visual Studio 2022, Release, windows-2022)'
runs-on: windows-2022
steps:
- name: 'Check Out'
uses: actions/checkout@v3
- name: 'Build'
run: |
mkdir build
cd build
cmake --version
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -DBUILD_SHARED_LIBS=ON ..
cmake --build . --config Release -j 2
- name: 'Test'
run: |
cd build
ctest --output-on-failure -C Release
windows-msvc-19:
name: 'Windows (Visual Studio 2019, Release, windows-2019)'
runs-on: windows-2019
steps:
- name: 'Check Out'
uses: actions/checkout@v3
- name: 'Build'
run: |
mkdir build
cd build
cmake --version
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -DBUILD_SHARED_LIBS=ON ..
cmake --build . --config Release -j 2
- name: 'Test'
run: |
cd build
ctest --output-on-failure -C Release
# # windows-2016 has been deprecated by GitHub Actions
# windows-msvc-17:
# name: 'Windows (Visual Studio 2017, Release, windows-2016)'
# runs-on: windows-2016
# steps:
# - name: 'Check Out'
# uses: actions/checkout@v3
# - name: 'Build'
# run: |
# mkdir build
# cd build
# cmake --version
# cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=11 -DBUILD_SHARED_LIBS=ON ..
# cmake --build . --config Release -j 2
# - name: 'Test'
# run: |
# cd build
# ctest --output-on-failure -C Release