From 72f2cd493dce8d2806ca0f6560c32f525fecc607 Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Tue, 31 May 2022 11:14:22 -0400 Subject: [PATCH] Update GitHub Actions --- .github/workflows/main.yml | 47 ++++++++++++++++++++++++++------------ ChangeLog.md | 11 +++++++++ 2 files changed, 43 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d77b0f..4595377 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/ChangeLog.md b/ChangeLog.md index 0e7544c..e392873 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -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