Skip to content

Commit 5bf8267

Browse files
authored
Merge pull request #176 from BerkeleyLab/add-flang-ci
Add CI that uses LLVM Flang to build Caffeine
2 parents 98baa51 + d6c88b5 commit 5bf8267

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Build with gfortran
22

33
on: [push, pull_request]
44

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build with LLVM Flang
2+
3+
on: [push, pull_request]
4+
5+
6+
jobs:
7+
Build:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-24.04]
12+
fail-fast: true
13+
container: gmao/llvm-flang:latest
14+
env:
15+
FC: flang-new
16+
CC: clang
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
22+
- uses: fortran-lang/setup-fpm@v4
23+
with:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Build with LLVM Flang
27+
if: contains(matrix.os, 'ubuntu')
28+
run: |
29+
fpm --version
30+
$FC --version
31+
$CC --version
32+
export FPM_FC=$FC
33+
export FPM_CC=$CC
34+
apt update
35+
apt install -y build-essential pkg-config make
36+
./install.sh
37+
38+
- name: Run unit tests
39+
run: |
40+
export GASNET_PSHM_NODES=8
41+
./build/run-fpm.sh test -- -d

0 commit comments

Comments
 (0)