Merge pull request #2 from jalvesz/jalvesz-patch-1 #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
toolchain: | |
- {compiler: gcc, version: 13} | |
- {compiler: intel, version: '2023.2'} | |
- {compiler: intel-classic, version: '2021.10'} | |
- {compiler: nvidia-hpc, version: '23.11'} | |
include: | |
- os: ubuntu-latest | |
toolchain: {compiler: gcc, version: 12} | |
exclude: | |
- os: macos-latest | |
toolchain: {compiler: intel, version: '2023.2'} | |
- os: macos-latest | |
toolchain: {compiler: nvidia-hpc, version: '23.11'} | |
- os: windows-latest | |
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: | | |
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 |