Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI - 2024-Aug-22 #149

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 66 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14]
compiler: [gfortran-11, gfortran-12, gfortran-13]
# gfortran-10 is only on ubuntu-22.04
# gfortran-14 is available on ubuntu-24.04
compiler: [gfortran-12, gfortran-13, gfortran-14]
# gfortran-10 and -11 are only on ubuntu-22.04
# gfortran-13 and -14 are not on ubuntu-22.04
include:
- os: ubuntu-22.04
compiler: gfortran-10
- os: ubuntu-24.04
compiler: gfortran-14
exclude:
- os: ubuntu-24.04
- os: ubuntu-22.04
compiler: gfortran-11
exclude:
- os: ubuntu-22.04
compiler: gfortran-13
- os: ubuntu-22.04
compiler: gfortran-14

# 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
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
build/**/*.log

Intel:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

env:
FC: ifx
Expand Down Expand Up @@ -169,8 +169,8 @@ jobs:
build/**/*.log

Nvidia:
runs-on: ubuntu-20.04
container: nvcr.io/nvidia/nvhpc:24.1-devel-cuda12.3-ubuntu22.04
runs-on: ubuntu-22.04
container: nvcr.io/nvidia/nvhpc:24.7-devel-cuda12.5-ubuntu22.04
env:
FC: nvfortran

Expand Down Expand Up @@ -224,3 +224,59 @@ jobs:
path: |
build/**/*.log

Flang:
runs-on: ubuntu-latest
container: gmao/llvm-flang:latest
env:
FC: flang-new

name: Flang
steps:
- name: Versions
run: |
${FC} --version
cmake --version

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set all directories as git safe
run: |
git config --global --add safe.directory '*'

- name: Add python-is-python3 package
run: |
apt-get update
apt-get install -y python-is-python3

- name: Build GFE Prereqs
run: |
bash ./tools/ci-install-gfe.bash

- name: Build fArgParse
run: |
mkdir -p build
cd build
cmake .. -DCMAKE_Fortran_COMPILER=${FC} -DCMAKE_INSTALL_PREFIX=${HOME}/Software/fArgParse -DCMAKE_PREFIX_PATH=${HOME}/Software/GFE
make -j4

- name: Build Tests
run: |
cd build
make -j4 tests

- name: Run Tests
run: |
cd build
ctest -j1 --output-on-failure --repeat until-pass:4

- name: Archive log files on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: logfiles
path: |
build/**/*.log

6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- LLVMFlang compiler support

### Changed

- Update CI to have `gfortran-10` and `gfortran-11` only on `ubuntu-22.04`
- Update CI NVIDIA to NVHPC 24.7
- Add Flang to CI

## [1.8.0] - 2024-07-09

### Changed
Expand Down
Loading