Skip to content

Commit

Permalink
Merge pull request #456 from AtChem/add_gfortran8_from_homebrew
Browse files Browse the repository at this point in the history
Add gfortran8 on macOS-latest and ubuntu-latest
  • Loading branch information
spco committed Aug 2, 2021
2 parents ad73e3b + 1f4afdc commit aeffeb2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fortran: [9]
fortran: [8, 9]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -32,6 +32,18 @@ jobs:
with:
fetch-depth: 2

# Install gfortran 8 since both Ubuntu and macOS don't supply it
# macOS only
- name: Install gfortran-8 on macOS
if: matrix.os == 'macos-latest' && matrix.fortran == 8
run: brew install gcc@8

# ubuntu only
- name: Install gfortran-8 on ubuntu
if: matrix.os == 'ubuntu-latest' && matrix.fortran == 8
run: sudo apt-get install gfortran-8

# Install cvode
# ubuntu only
- name: Install cvode (ubuntu)
if: matrix.os == 'ubuntu-latest'
Expand All @@ -42,6 +54,7 @@ jobs:
if: matrix.os == 'macos-latest'
run: ./tools/install/install_cvode.sh $PWD $(which gfortran-${{ matrix.fortran }})

# Install all dependencies
# both OSs
- name: Install openlibm
run: ./tools/install/install_openlibm.sh $PWD
Expand All @@ -52,6 +65,7 @@ jobs:
- name: Install fruit
run: sudo ./tools/install/install_fruit.sh $PWD

# Build AtChem2 and run all tests
- name: Build AtChem2
# Set FORT_VERSION for use inside the Makefile (called from build_atchem2.sh)
env:
Expand Down

0 comments on commit aeffeb2

Please sign in to comment.