Skip to content

Commit

Permalink
Merge pull request #15 from BerkeleyLab/add-flang-to-ci
Browse files Browse the repository at this point in the history
Add LLVM Flang to CI
  • Loading branch information
rouson authored Sep 7, 2024
2 parents fb79a7f + 1fffb72 commit fdb04c8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-with-flang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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

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

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

- name: Build and Test with LLVM Flang
if: contains(matrix.os, 'ubuntu')
run: |
fpm --version
$FC --version
export FPM_FC=$FC
fpm test --flag "-mmlir -allow-assumed-rank -O3"

0 comments on commit fdb04c8

Please sign in to comment.