Create variables to track non-passive species, so that they can be excluded from the Rosenbrock error norm (in int/rosenbrock*.f90 integrators only) #193
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # | |
| # GitHub Action to run C-I tests with GCC compilers | |
| # | |
| name: Run C-I tests | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| KPP_HOME: ${{ github.workspace }} | |
| KPP_FLEX_LIB_DIR: /usr/lib/x86_64-linux-gnu | |
| strategy: | |
| matrix: | |
| gcc-version: [9, 10, 11, 12, 13, 14, 15, 16] | |
| name: Run C-I tests with GCC ${{ matrix.gcc-version }} | |
| steps: | |
| - name: Checkout KPP | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Install libraries | |
| run: | | |
| sudo grep -rl 'packages.microsoft.com' /etc/apt/sources.list.d/ | xargs -r sudo rm -f | |
| sudo apt update -y | |
| sudo apt install -y software-properties-common | |
| sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
| sudo apt update -y | |
| sudo apt install -y flex bison libfl-dev | |
| sudo apt install -y gcc-${{ matrix.gcc-version }} g++-${{ matrix.gcc-version }} gfortran-${{ matrix.gcc-version }} | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc-version }} 100 \ | |
| --slave /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.gcc-version }} \ | |
| --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${{ matrix.gcc-version }} | |
| - name: Verify environment | |
| run: | | |
| echo '%%% COMPILERS %%%' | |
| gcc --version | |
| echo '' | |
| g++ --version | |
| echo '' | |
| gfortran --version | |
| echo '' | |
| echo '%%% ENVIRONMENT %%%' | |
| echo "flex = $(which flex)" | |
| echo "bison = $(which bison)" | |
| echo "KPP_HOME = $KPP_HOME" | |
| echo "KPP_FLEX_LIB_DIR = $KPP_FLEX_LIB_DIR" | |
| - name: Compile with Make | |
| run: | | |
| cd $KPP_HOME/src | |
| make all | |
| - name: Run C-I tests | |
| run: | | |
| cd $KPP_HOME/.ci-pipelines | |
| ./ci-testing-script.sh |