Merge pull request #176 from BerkeleyLab/add-flang-ci #11
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
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 |