Skip to content

Commit

Permalink
Merge pull request #176 from BerkeleyLab/add-flang-ci
Browse files Browse the repository at this point in the history
Add CI that uses LLVM Flang to build Caffeine
  • Loading branch information
bonachea authored Jan 17, 2025
2 parents 98baa51 + d6c88b5 commit 5bf8267
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Build with gfortran

on: [push, pull_request]

Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/build-with-flang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build with LLVM Flang

on: [push, pull_request]


jobs:
Build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
fail-fast: true
container: gmao/llvm-flang:latest
env:
FC: flang-new
CC: clang

steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: fortran-lang/setup-fpm@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build with LLVM Flang
if: contains(matrix.os, 'ubuntu')
run: |
fpm --version
$FC --version
$CC --version
export FPM_FC=$FC
export FPM_CC=$CC
apt update
apt install -y build-essential pkg-config make
./install.sh
- name: Run unit tests
run: |
export GASNET_PSHM_NODES=8
./build/run-fpm.sh test -- -d

0 comments on commit 5bf8267

Please sign in to comment.