Skip to content

Commit

Permalink
Merge pull request #254 from AlexanderRichert-NOAA/gcc_testing_oct24
Browse files Browse the repository at this point in the history
Add GCC 12 & 14 to CI testing
  • Loading branch information
AlysonStahl-NOAA authored Oct 4, 2024
2 parents 1e9a8eb + 2090c4b commit d927ec9
Showing 1 changed file with 16 additions and 10 deletions.
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"
}
- {
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

0 comments on commit d927ec9

Please sign in to comment.