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

CI: Test GMT building on Fedora 37, 38 and rawhide #7870

Merged
merged 3 commits into from
Oct 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
CI: Test GMT building on Fedora 37, 38 and rawhide
  • Loading branch information
seisman committed Oct 5, 2023
commit 5463688aaf92aed8a0845850ff91c85c602d24e1
40 changes: 26 additions & 14 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,39 @@ jobs:
fail-fast: false
matrix:
image:
- ubuntu:20.04 # CMake 3.16.3 + GNU 9.3.0; EOL: 2025-04-23
- ubuntu:22.04 # CMake 3.22.1 + GNU 11.2.0; EOL: 2027-04-21
- ubuntu:23.04 # CMake 3.24.1 + GNU 12.2.0; EOL: 2024-01-20
- debian:10 # CMake 3.13.4 + GNU 8.3.0; EOL: 2024-06-01
- debian:11 # CMake 3.18.4 + GNU 10.2.1; EOL: 2026-06-01
- debian:12 # CMake 3.25.1 + GNU 12.2.0; EOL: 2028-06-01
- debian:sid # rolling release with latest versions
# Ubuntu: https://en.wikipedia.org/wiki/Ubuntu_version_history#Table_of_versions
- ubuntu:20.04 # CMake 3.16.3 + GNU 9.3.0; EOL: 2025-04-23
- ubuntu:22.04 # CMake 3.22.1 + GNU 11.2.0; EOL: 2027-04-21
- ubuntu:23.04 # CMake 3.25.1 + GNU 12.2.0; EOL: 2024-01-20
# Debian: https://en.wikipedia.org/wiki/Debian_version_history#Release_table
- debian:10 # CMake 3.13.4 + GNU 8.3.0; EOL: 2024-06-01
- debian:11 # CMake 3.18.4 + GNU 10.2.1; EOL: 2026-06-01
- debian:12 # CMake 3.25.1 + GNU 12.2.0; EOL: 2028-06-01
- debian:sid # rolling release with latest versions
# Fedora: https://en.wikipedia.org/wiki/Fedora_Linux_release_history
- fedora:37 # CMake 3.24.1 + GNU 12.2.1; EOL: 2023-11-14
- fedora:38 # CMake 3.26.2 + GNU 13.0.1; EOL: 2024-05-14
- fedora:rawhide # rolling release with latest versions

steps:
- name: Checkout
uses: actions/[email protected]

- name: Install GMT dependencies
run: |
apt-get update
# tzdata is required for Ubuntu>=20.04
DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get install -y tzdata
apt-get install -y --no-install-recommends --no-install-suggests \
build-essential cmake ninja-build libcurl4-gnutls-dev libnetcdf-dev \
ghostscript curl git \
libgdal-dev libfftw3-dev libpcre3-dev liblapack-dev libglib2.0-dev
os=$(cat /etc/os-release | grep "^ID=" | awk -F= '{print $2}')
if [[ "$os" = "ubuntu" || "$os" = "debian" ]]; then
apt-get update
DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get install -y tzdata
apt-get install -y --no-install-recommends --no-install-suggests \
build-essential cmake ninja-build libcurl4-gnutls-dev libnetcdf-dev \
ghostscript curl git \
libgdal-dev libfftw3-dev libpcre3-dev liblapack-dev libglib2.0-dev
elif [[ "$os" = "fedora" ]]; then
dnf install -y cmake libcurl-devel netcdf-devel gdal-devel \
ninja-build gdal pcre-devel fftw3-devel lapack-devel \
openblas-devel glib2-devel ghostscript
fi

- name: Cache GSHHG and DCW data
uses: actions/cache@v3
Expand Down