-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from BerkeleyLab/add-flang-ci
Add CI that uses LLVM Flang to build Caffeine
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI | ||
name: Build with gfortran | ||
|
||
on: [push, pull_request] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |