Skip to content

Commit

Permalink
Merge pull request #52 from Goddard-Fortran-Ecosystem/feature/mathomp…
Browse files Browse the repository at this point in the history
…4/update-ci-yafyaml

Update GitHub Actions
  • Loading branch information
tclune authored May 31, 2022
2 parents fdda2b3 + 72f2cd4 commit 32842ed
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 15 deletions.
47 changes: 32 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,61 @@
name: CI Tests

on: [pull_request]
on:
pull_request:
types: [opened, synchronize, reopened]
# Do not run if the only files changed cannot affect the build
paths-ignore:
- "**.md"
- "**.MD"
- "LICENSE"
- "COPYRIGHT"

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-10.15, macos-11]
#compiler: [gfortran-8, gfortran-9, gfortran-10, gfortran-11]
compiler: [gfortran-10, gfortran-11]
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
compiler: [gfortran-9, gfortran-10, gfortran-11, gfortran-12]
exclude:
- os: ubuntu-20.04
compiler: gfortran-11
# - os: macos-11
# compiler: gfortran-11
- os: ubuntu-20.04
compiler: gfortran-12
- os: ubuntu-22.04
compiler: gfortran-9
- os: macos-11
compiler: gfortran-12
- os: macos-12
compiler: gfortran-9
- os: macos-12
compiler: gfortran-10
- os: macos-12
compiler: gfortran-12

# fail-fast is set to 'true' here which is good for production, but when
# fail-fast if set to 'true' here is good for production, but when
# debugging, set to 'false'. fail-fast means if *any* ci test in the matrix fails
# GitHub Actions will stop any other test immediately. So good for production, bad
# when trying to figure something out. For more info see:
# https://www.edwardthomson.com/blog/github_actions_6_fail_fast_matrix_workflows.html

fail-fast: true
fail-fast: false
env:
FC: ${{ matrix.compiler }}
LANGUAGE: en_US.UTF-8
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LC_TYPE: en_US.UTF-8
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
OMPI_MCA_btl_vader_single_copy_mechanism: none

name: ${{ matrix.os }} / ${{ matrix.compiler }}
steps:
- name: Install GCC 8 on Ubuntu 20
if: matrix.os == 'ubuntu-20.04' && matrix.compiler == 'gfortran-8'
run: |
sudo apt-get install gfortran-8 -y
- name: Install GCC 11 on Ubuntu 20
if: matrix.os == 'ubuntu-20.04' && matrix.compiler == 'gfortran-11'
- name: Install GCC 12 on Ubuntu 22.04
if: matrix.os == 'ubuntu-22.04' && matrix.compiler == 'gfortran-12'
run: |
sudo apt-get install gfortran-11 -y
sudo apt-get install gfortran-12 -y
- name: Compiler Versions
run: |
${FC} --version
Expand Down
11 changes: 11 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Changed

- Updated GitHub Actions
- OSs
- Remove macos-10.15
- Add ubuntu-22.04 and macos-12
- Compilers
- Removed gfortran-8
- Added gfortran-11
- Added gfortran-12 (for ubuntu-22.04)

## [1.0.0] 2022-05-08

### Fixed
Expand Down

0 comments on commit 32842ed

Please sign in to comment.