ENH: Fixing timeout issue with conda #7
This file contains hidden or 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: Regression Tests (NVHPC) | |
| on: | |
| push: | |
| branches: [ main, CMake_build ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| Regression-Tests: | |
| runs-on: ubuntu-20.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: Serial | |
| cmake_args: -DFIERRO_ENABLE_OPENMP=OFF | |
| omp_threads: 1 | |
| - name: OpenMP | |
| cmake_args: -DFIERRO_ENABLE_OPENMP=ON | |
| omp_threads: 2 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 1 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake libblas-dev liblapack-dev python3 bison flex libncurses5 | |
| - name: Install NVHPC SDK | |
| uses: mpi4py/setup-mpi@v1 | |
| with: | |
| mpi: nvhpc | |
| - name: Configure CMake | |
| env: | |
| CC: nvc | |
| CXX: nvc++ | |
| FC: nvfortran | |
| run: | | |
| mkdir -p apps/multiphysics/build | |
| cd apps/multiphysics/build | |
| cmake -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_args }} .. | |
| - name: Build Fierro | |
| run: | | |
| cd apps/multiphysics/build | |
| make -j$(nproc) | |
| - name: Run Regression Tests | |
| env: | |
| OMP_NUM_THREADS: ${{ matrix.omp_threads }} | |
| run: | | |
| cd apps/multiphysics/regression_tests | |
| python3 test_refactor.py |