From 507325634bdacdbfcc8c25b1094a6832ef3d5275 Mon Sep 17 00:00:00 2001 From: Joe Schoonover Date: Wed, 12 Jun 2024 18:18:57 +0000 Subject: [PATCH] Add nvfortran build tests --- .github/workflows/linux-nvfortran-cmake.yaml | 65 ++++++++++++++++++++ README.md | 14 +++-- 2 files changed, 73 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/linux-nvfortran-cmake.yaml diff --git a/.github/workflows/linux-nvfortran-cmake.yaml b/.github/workflows/linux-nvfortran-cmake.yaml new file mode 100644 index 0000000..df90a0a --- /dev/null +++ b/.github/workflows/linux-nvfortran-cmake.yaml @@ -0,0 +1,65 @@ +name: linux-amdflang-cmake + +on: + push: + branches: + - master + - main + paths-ignore: + - 'AUTHORS.md' + - 'LICENSE.md' + - 'README.md' + pull_request: + paths-ignore: + - 'AUTHORS.md' + - 'LICENSE.md' + - 'README.md' + +jobs: + linux-tests: + timeout-minutes: 20 + if: "!contains(github.event.head_commit.message, 'skip ci')" + name: ${{ matrix.os }} - ${{ matrix.toolchain.compiler }} - ${{ matrix.build_type }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + toolchain: + - {compiler: nvidia-hpc, version: '23.11'} + include: + - os: ubuntu-22.04 + shell: bash + build_type: debug + toolchain: {compiler: nvidia-hpc, version: '23.11'} + + defaults: + run: + shell: ${{ matrix.shell }} + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - uses: fortran-lang/setup-fortran@v1 + id: setup-fortran + with: + compiler: ${{ matrix.toolchain.compiler }} + version: ${{ matrix.toolchain.version }} + + - name: Show version information + run: | + ${{ env.FC }} --version + ${{ env.CC }} --version + + - name: Build with Cmake + run: | + export PATH=${PATH}:/opt/rocm/bin + mkdir build + cd build + FC=${{ env.FC }} CC=${{ env.CC }} cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ../ + make VERBOSE=1 + + - name: Run ctests + run: | + cd build/test + ctest || ctest --rerun-failed --output-on-failure + diff --git a/README.md b/README.md index d45b08b..0809f5e 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,18 @@ # Fortran Equation Parser Copyright 2020 Fluid Numerics LLC -[![Build Status](https://github.com/fluidnumerics/feq-parse/actions/workflows/linux-gnu-cmake.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/linux-gnu-cmake.yml) -[![Build Status](https://github.com/fluidnumerics/feq-parse/actions/workflows/linux-gnu-fpm.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/linux-gnu-fpm.yml) +[![linux-gnu-cmake](https://github.com/fluidnumerics/feq-parse/actions/workflows/linux-gnu-cmake.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/linux-gnu-cmake.yml) +[![linux-gnu-fpm](https://github.com/fluidnumerics/feq-parse/actions/workflows/linux-gnu-fpm.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/linux-gnu-fpm.yml) -[![Build Status](https://github.com/fluidnumerics/feq-parse/actions/workflows/linux-intel-cmake.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/linux-intel-cmake.yml) -[![Build Status](https://github.com/fluidnumerics/feq-parse/actions/workflows/linux-intel-fpm.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/linux-intel-fpm.yml) +[![linux-intel-cmake](https://github.com/fluidnumerics/feq-parse/actions/workflows/linux-intel-cmake.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/linux-intel-cmake.yml) +[![linux-intel-fpm](https://github.com/fluidnumerics/feq-parse/actions/workflows/linux-intel-fpm.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/linux-intel-fpm.yml) +[![linux-amdflang-cmake](https://github.com/FluidNumerics/feq-parse/actions/workflows/linux-amdflang-cmake.yaml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/linux-amdflang-cmake.yaml) -[![Build Status](https://github.com/fluidnumerics/feq-parse/actions/workflows/windows-gnu-cmake.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/windows-gnu-cmake.yml) -[![Build Status](https://github.com/fluidnumerics/feq-parse/actions/workflows/windows-gnu-fpm.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/windows-gnu-fpm.yml) + +[![windows-gnu-cmake](https://github.com/fluidnumerics/feq-parse/actions/workflows/windows-gnu-cmake.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/windows-gnu-cmake.yml) +[![windows-gnu-fpm](https://github.com/fluidnumerics/feq-parse/actions/workflows/windows-gnu-fpm.yml/badge.svg)](https://github.com/FluidNumerics/feq-parse/actions/workflows/windows-gnu-fpm.yml) [![codecov](https://codecov.io/gh/FluidNumerics/feq-parse/graph/badge.svg?token=IBNDDI4MHB)](https://codecov.io/gh/FluidNumerics/feq-parse)