Skip to content

Commit

Permalink
Add flang to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Sep 4, 2024
1 parent 50651ba commit 540c597
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,52 @@ jobs:
path: |
build/**/*.log
Flang:
runs-on: ubuntu-latest
container: gmao/llvm-flang-openmpi: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: Configure pFUnit
run: cmake -B build

- name: Build pfUnit
run: cmake --build build --parallel

- name: Build Tests
run: |
cmake --build build --parallel 4 --target build-tests
cmake --build build --parallel 4 --target tests
- name: Run Ctest
run: ctest --test-dir build --parallel 1 --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
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- 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

## [4.10.0] - 2024-07-10

Expand Down

0 comments on commit 540c597

Please sign in to comment.