From 236a47dd23d38b17add233b9ecae0a6f64874a5c Mon Sep 17 00:00:00 2001 From: Markus Neteler Date: Thu, 7 Sep 2023 23:17:58 +0200 Subject: [PATCH] CI: drop outdated CentOS 7 compilation (#3141) Remove of CentOS 7 compilation as no longer compatible with new GHA checkout v4 (see #3138 - Background: default runtime now node20. Node16 has end of life on 11 Sep 2023). Co-authored-by: Vaclav Petras --- .github/workflows/build_centos.sh | 48 -------------------- .github/workflows/centos.yml | 74 ------------------------------- .github/workflows/yum.txt | 37 ---------------- README.md | 1 - 4 files changed, 160 deletions(-) delete mode 100755 .github/workflows/build_centos.sh delete mode 100644 .github/workflows/centos.yml delete mode 100644 .github/workflows/yum.txt diff --git a/.github/workflows/build_centos.sh b/.github/workflows/build_centos.sh deleted file mode 100755 index c68b13dab4f..00000000000 --- a/.github/workflows/build_centos.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -# The make step requires something like: -# export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PREFIX/lib" -# further steps additionally require: -# export PATH="$PATH:$PREFIX/bin" - -# fail on non-zero return code from a subprocess -set -e - -# print commands -set -x - -if [ -z "$1" ]; then - echo "Usage: $0 PREFIX" - exit 1 -fi - -# non-existent variables as an errors -set -u - -export INSTALL_PREFIX=$1 - -# Old versions of GCC on CentOS default to C89 although are C11 capable -# This causes compilation to fail on >C89 code -export CFLAGS="-O2 -std=gnu11" -export CXXFLAGS="-std=gnu++11" - -./configure \ - --prefix="$INSTALL_PREFIX/" \ - --without-freetype \ - --with-sqlite \ - --with-cairo --with-cairo-ldflags=-lfontconfig \ - --with-freetype --with-freetype-includes=/usr/include/freetype2 \ - --with-proj --with-proj-share=/usr/share/proj \ - --with-libpng=/usr/bin/libpng-config \ - --with-gdal=/usr/bin/gdal-config \ - --without-zstd \ - --without-tiff \ - --without-ffmpeg \ - --without-mysql \ - --without-postgres \ - --without-odbc \ - --without-fftw \ - --without-pdal - -make -make install diff --git a/.github/workflows/centos.yml b/.github/workflows/centos.yml deleted file mode 100644 index 15cd33e31f2..00000000000 --- a/.github/workflows/centos.yml +++ /dev/null @@ -1,74 +0,0 @@ ---- -name: CentOS - -on: - push: - branches: - - main - - releasebranch_* - pull_request: - branches: - - main - - releasebranch_* - -concurrency: - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} - cancel-in-progress: true - -jobs: - build: - name: ${{ matrix.os }} build - - runs-on: ubuntu-22.04 - container: ${{ matrix.os }} - strategy: - matrix: - os: - - centos:7 - fail-fast: false - - steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - name: Get dependencies - run: | - yum install -y epel-release - yum install -y wget gawk - yum install -y $(cat .github/workflows/yum.txt) - - name: Install conda - run: | - wget https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh - chmod u+x Anaconda3-2020.02-Linux-x86_64.sh - ./Anaconda3-2020.02-Linux-x86_64.sh -b - - name: Set variables with conda executable and activate - run: | - echo "CONDA=/github/home/anaconda3/bin/conda" >> $GITHUB_ENV - echo "CONDA_ACTIVATE=/github/home/anaconda3/bin/activate" >> $GITHUB_ENV - - name: Get GRASS GIS runtime conda dependencies - run: | - source $CONDA_ACTIVATE - $CONDA install -y -c anaconda numpy wxpython python-dateutil ply termcolor - - name: Create installation directory - run: | - mkdir $HOME/install - - name: Set number of cores for compilation - run: | - echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV - - name: Set LD_LIBRARY_PATH for compilation - run: | - echo "LD_LIBRARY_PATH=$HOME/install/lib" >> $GITHUB_ENV - - name: Build - run: | - source $CONDA_ACTIVATE - .github/workflows/build_centos.sh $HOME/install - - name: Add the bin directory to PATH - run: | - echo "$HOME/install/bin" >> $GITHUB_PATH - - name: Test executing of the grass command - run: | - source $CONDA_ACTIVATE - .github/workflows/test_simple.sh - - name: Print installed versions - if: always() - run: | - source $CONDA_ACTIVATE - .github/workflows/print_versions.sh diff --git a/.github/workflows/yum.txt b/.github/workflows/yum.txt deleted file mode 100644 index c7620403dd6..00000000000 --- a/.github/workflows/yum.txt +++ /dev/null @@ -1,37 +0,0 @@ -atlas-devel -bison -blas-devel -cairo-devel -fftw-devel -flex -gcc-c++ -gdal -gdal-devel -geos -geos-devel -gettext -lapack-devel -lesstif-devel -libpng-devel -libtiff-devel -libX11-devel -libxml2 -libXmu-devel -make -mesa-libGL-devel -mesa-libGLU-devel -netcdf -netcdf-devel -numpy -proj -proj-devel -proj-epsg -proj-nad -python-dateutil -python-devel -python-imaging -python-matplotlib -sqlite-devel -wxGTK-devel -wxPython -zlib-devel diff --git a/README.md b/README.md index c1bd1f76c42..5a827fb3eda 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ [![General linting](https://github.com/OSGeo/grass/workflows/General%20linting/badge.svg)](https://github.com/OSGeo/grass/actions?query=workflow%3A%22General+linting%22) [![Ubuntu](https://github.com/OSGeo/grass/workflows/Ubuntu/badge.svg)](https://github.com/OSGeo/grass/actions?query=workflow%3AUbuntu) [![OSGeo4W](https://github.com/OSGeo/grass/workflows/OSGeo4W/badge.svg)](https://github.com/OSGeo/grass/actions?query=workflow%3AOSGeo4W) -[![CentOS](https://github.com/OSGeo/grass/workflows/CentOS/badge.svg)](https://github.com/OSGeo/grass/actions?query=workflow%3ACentOS) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5176030.svg)](https://doi.org/10.5281/zenodo.5176030) [![Join the chat at https://gitter.im/grassgis/community](https://badges.gitter.im/grassgis/community.svg)](https://gitter.im/grassgis/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)