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

Add GCC 12 & 14 to CI testing #254

Merged
Merged
Changes from all commits
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
26 changes: 16 additions & 10 deletions .github/workflows/Linux_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ concurrency:

jobs:
Linux_options:
runs-on: ubuntu-latest
env:
FC: gfortran
CC: gcc
runs-on: ubuntu-24.04

strategy:
# fail-fast: true
matrix:
config:
- {
options: "-DUSE_IPOLATES=ON"
options: "-DUSE_IPOLATES=ON -DBLA_VENDOR=OpenBLAS"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did this new option come from?

}
- {
options: "-DUSE_AEC=ON"
Expand All @@ -42,21 +39,30 @@ jobs:
- {
options: "-DUSE_OPENJPEG=ON"
}
gcc-version: [12]
include:
- gcc-version: 14

steps:

- name: install
run: |
sudo apt-get update
sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config
sudo apt-get install libpng-dev autotools-dev autoconf libaec-dev
sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config \
libpng-dev autotools-dev autoconf libaec-dev libopenblas-serial-dev \
libopenjp2-7 libopenjp2-7-dev
if [ -z $(type -P gcc-${{ matrix.gcc-version }}) ]; then
sudo apt-get install gcc-${{ matrix.gcc-version }} gfortran-${{ matrix.gcc-version }}
fi
echo "CC=gcc-${{ matrix.gcc-version }}" >> $GITHUB_ENV
echo "FC=gfortran-${{ matrix.gcc-version }}" >> $GITHUB_ENV

- name: cache-jasper
id: cache-jasper
uses: actions/cache@v3
with:
path: ~/jasper
key: jasper-${{ runner.os }}-1.900.1
key: jasper-${{ runner.os }}-gcc${{ matrix.gcc-version }}-1.900.1

- name: checkout-jasper
if: steps.cache-jasper.outputs.cache-hit != 'true'
Expand All @@ -70,7 +76,7 @@ jobs:
if: steps.cache-jasper.outputs.cache-hit != 'true'
run: |
cd jasper
./configure --prefix=$HOME/jasper
CFLAGS="-Wno-implicit-function-declaration -Wno-incompatible-pointer-types" ./configure --prefix=$HOME/jasper
make
make install

Expand All @@ -79,7 +85,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/ip
key: ip-${{ runner.os }}-develop
key: ip-${{ runner.os }}-gcc${{ matrix.gcc-version }}-develop

- name: checkout-ip
if: steps.cache-ip.outputs.cache-hit != 'true'
Expand Down
Loading