diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f0fb1d..4170b9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file + 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