Skip to content

Commit

Permalink
Merge pull request #2 from jalvesz/jalvesz-patch-1
Browse files Browse the repository at this point in the history
merge github action
  • Loading branch information
jalvesz authored Jan 14, 2024
2 parents 665ccfe + 29babe2 commit 61f783c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,22 @@ jobs:
toolchain: {compiler: nvidia-hpc, version: '23.11'}

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

- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}

- name: Setup Fortran Package Manager
uses: fortran-lang/setup-fpm@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- run: |
${{ env.FC }} ... # environment vars FC, CC, and CXX are set
${{ steps.setup-fortran.outputs.fc }} ... # outputs work too
export FPM_FC=${{ env.FC }}
fpm test --flag "-O3"
# ${{ env.FC }} ... # environment vars FC, CC, and CXX are set
# ${{ steps.setup-fortran.outputs.fc }} ... # outputs work too

0 comments on commit 61f783c

Please sign in to comment.