Skip to content

Fix compiling with GCC 14 #20

Fix compiling with GCC 14

Fix compiling with GCC 14 #20

# Run Continuous Integration on macOS 14 Sonoma with GCC
# This includes Fortran support
# This mainly checks for issues/regressions in the native build
name: compatibility_macos_sonoma_14_gcc_gfortran
on:
schedule:
- cron: '00 8 * * 6'
push:
branches:
- 'release-*'
- fix_native_compatibility_ci
jobs:
build:
runs-on: macos-14
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.3
- name: Install dependencies
run: |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gcc@14
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install openmpi
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install pkg-config
python3 -m venv ~/tox_venv
. ~/tox_venv/bin/activate && python3 -m pip install --upgrade pip
. ~/tox_venv/bin/activate && pip3 install tox tox-gh-actions
- name: Run all tests
run: cd ${GITHUB_WORKSPACE} && PATH=$PATH:~/tox_venv/bin CXX=g++-14 OMPI_CXX=g++-14 FC=gfortran-14 OMPI_FC=gfortran-14 make test test_examples