Skip to content

knowledge

knowledge #7

Workflow file for this run

name: Setup Fortran Conda CI/CD
#credit: https://github.com/gha3mi/setup-fortran-conda/tree/main
on:
push:
branches: [main, master, dev]
pull_request:
branches: [main, master]
permissions:
contents: write
pull-requests: write
jobs:
# Run FPM tests (debug + release) on all OS/compiler combinations
test_fpm:
name: ${{ matrix.os }}_${{ matrix.compiler }}_fpm
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
compiler: [gfortran, ifx, lfortran, flang-new, nvfortran]
include:
- os: ubuntu-latest
extra-packages: ""
- os: windows-latest
extra-packages: ""
#- os: macos-latest
# extra-packages: ""
exclude:
- os: macos-latest
compiler: flang-new
- os: macos-latest
compiler: ifx
- os: macos-latest
compiler: nvfortran
- os: windows-latest
compiler: nvfortran
steps:
- name: Setup Fortran
uses: gha3mi/setup-fortran-conda@latest
with:
compiler: ${{ matrix.compiler }}
platform: ${{ matrix.os }}
extra-packages: ${{ matrix.extra-packages }}
- name: fpm test (release)
run: fpm test --compiler ${{ matrix.compiler }} --profile release --verbose
# Run Fortran linter with Fortitude
linter_fortitude:
name: Run Fortitude Linter
runs-on: ubuntu-latest
steps:
- name: Run Fortitude Linter
uses: gha3mi/setup-fortran-conda@latest
with:
fortitude-check: true
fortitude-settings: "--output-format github"