Skip to content

example/demo.f90 and example/demo_reverse.f90: changed the discrete c… #6

example/demo.f90 and example/demo_reverse.f90: changed the discrete c…

example/demo.f90 and example/demo_reverse.f90: changed the discrete c… #6

Workflow file for this run

name: fpm
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
toolchain:
- {compiler: gcc}
- {compiler: intel}
- {compiler: intel-classic}
exclude:
- os: windows-latest
toolchain: {compiler: intel}
- os: windows-latest
toolchain: {compiler: intel-classic}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Fortran Package Manager (fpm)
uses: fortran-lang/setup-fpm@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Fortran Compiler
uses: fortran-lang/setup-fortran@main
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
- name: Run Tests (Debug)
run: fpm test --profile debug --compiler ${{ env.FC}}
env:
FC: ${{ steps.setup-fortran.outputs.fc }}
- name: Run Tests (Release)
run: fpm test --profile release --compiler ${{ env.FC}}
env:
FC: ${{ steps.setup-fortran.outputs.fc }}
- name: Run Examples (Debug)
run: fpm run --example --all --profile debug --compiler ${{ env.FC}}
env:
FC: ${{ steps.setup-fortran.outputs.fc }}
- name: Run Examples (Release)
run: fpm run --example --all --profile release --compiler ${{ env.FC}}
env:
FC: ${{ steps.setup-fortran.outputs.fc }}