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 Dec 18, 2024
1 parent 11dcd03 commit ba60a2f
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/test_suite_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,21 @@ jobs:
strategy:
fail-fast: false
matrix:
std: ["f2008", "f2018"]
toolchain:
- {compiler: gcc, version: 13}
- {compiler: gcc, version: 12}
- {compiler: gcc, version: 11}
- {compiler: gcc, version: 10}
- {compiler: gcc, version: 9}
- {compiler: intel, version: '2024.1'}
- {compiler: intel-classic, version: '2021.10'}
- {compiler: lfortran, version: '0.33.0'}
- {compiler: nvidia-hpc, version: '23.11'}
std: ["f2008"]
include:
# Run 2018 Fortran standards on latest gcc only
- toolchain: {compiler: gcc, version: 13}
std: "f2018"

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -50,6 +64,16 @@ jobs:
persist-credentials: false
uses: actions/checkout@v4

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

- name: check-compilers-env
run: |
${{ steps.setup-fortran.outputs.fc }}
- name: Install Python
uses: actions/setup-python@v5
with:
Expand All @@ -73,6 +97,9 @@ jobs:
cmake .. \
-DPython_EXECUTABLE="$(which python)" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_Fortran_COMPILER=${{ env.FC }} \
-DCMAKE_C_COMPILER=${{ env.CC }} \
-DCMAKE_CXX_COMPILER=${{ env.CXX }} \
-DCMAKE_INSTALL_PREFIX=${BUILD_DIR} \
-DCMAKE_BUILD_TESTS=TRUE \
-DCMAKE_Fortran_FLAGS="-std=${{matrix.std}}"
Expand Down

0 comments on commit ba60a2f

Please sign in to comment.