Skip to content

Commit

Permalink
Update test-suite workflow to use the fortran-lang github action to a…
Browse files Browse the repository at this point in the history
…ccess intel compilers.
  • Loading branch information
jatkinson1000 committed Aug 15, 2024
1 parent 549ee97 commit d7b7baa
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,48 @@ jobs:
# This workflow contains a single job called "test-suite"
test-suite:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
std: ["f2008", "f2018"]
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'}
std: ["f2008", "f2018"]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout code
uses: actions/checkout@v4

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

- name: set-fortran-env
run: |
${{ env.FC }} ... # environment vars FC, CC, and CXX are set
${{ steps.setup-fortran.outputs.fc }} ... # outputs work too
- name: Install Python
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit d7b7baa

Please sign in to comment.