Skip to content

Commit

Permalink
add more testing details for Linux gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
mukul1992 committed May 16, 2024
1 parent 0a45217 commit 917f838
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Linux GCC

on: [push, pull_request]

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-linux-gcc
cancel-in-progress: true
#concurrency:
# group: ${{ github.ref }}-${{ github.head_ref }}-linux-gcc
# cancel-in-progress: true

jobs:
library:
Expand All @@ -14,44 +14,38 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
submodules: true
repository: [email protected]:mukul1992/ERF.git
ref: preserve-amrw-coupling
path: ERF
with:
repository: [email protected]:mukul1992/amr-wind.git
ref: new-erf-coupling
path: amr-wind

- name: Install Dependencies
run: Submodules/AMReX/.github/workflows/dependencies/dependencies.sh
run: ${{github.workspace}}/ERF/Submodules/AMReX/.github/workflows/dependencies/dependencies.sh

- name: Configure Project and Generate Build System
run: |
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=./install \
-B${{runner.workspace}}/erf-amrwind-driver/build \
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/erf-amrwind-driver/install \
-DCMAKE_CXX_COMPILER:STRING=mpicxx \
-DCMAKE_C_COMPILER:STRING=mpicc \
-DCMAKE_Fortran_COMPILER:STRING=mpifort \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DAMRWIND_HOME:STRING=$HOME/amr-wind \
-DERF_HOME:STRING=$HOME/ERF \
-DAMRWIND_HOME:STRING=${{github.workspace}}/amr-wind \
-DERF_HOME:STRING=${{github.workspace}}/ERF \
-DERF_DIM:STRING=3 \
-DERF_ENABLE_MPI:BOOL=ON \
-DERF_ENABLE_TESTS:BOOL=OFF \
-DERF_ENABLE_FCOMPARE:BOOL=ON \
-DERF_ENABLE_DOCUMENTATION:BOOL=OFF \
-DERF_ENABLE_MULTIBLOCK:BOOL=ON \
..
cmake \
-B${{runner.workspace}}/ERF/build \
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/ERF/install \
-DCMAKE_BUILD_TYPE:STRING=Debug \
-DERF_DIM:STRING=3 \
-DERF_ENABLE_MPI:BOOL=ON \
-DERF_ENABLE_TESTS:BOOL=ON \
-DERF_ENABLE_ALL_WARNINGS:BOOL=ON \
-DERF_ENABLE_FCOMPARE:BOOL=ON \
${{github.workspace}};
- name: Compile and Link
run: |
cmake --build ${{runner.workspace}}/ERF/build --parallel 2 --verbose
- name: CMake Tests # see file ERF/Tests/CTestList.cmake
run: |
ctest -L regression -VV
working-directory: ${{runner.workspace}}/ERF/build
cd ${{runner.workspace}}/erf-amrwind-driver/build
make -j 8
# cmake --build ${{runner.workspace}}/ERF/build --parallel 2 --verbose

0 comments on commit 917f838

Please sign in to comment.