update grep command #532
This file contains 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: build-test | |
on: | |
push: | |
schedule: | |
- cron: '12 14 * * 3' | |
jobs: | |
buildTest: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
build_type: [RelWithDebInfo] | |
compiler: [g++] | |
language: ['cpp'] | |
steps: | |
- name: Update packages | |
run: sudo apt-get update | |
- name: Install mpi | |
run: sudo apt-get install -yq mpich libmpich-dev | |
- name: Install Valgrind | |
run: sudo apt-get install -yq valgrind | |
- name: Install NetCDF-Fortran | |
run: sudo apt-get install libnetcdff-dev | |
- uses: actions/checkout@v4 | |
- name: build kokkos | |
uses: ./.github/actions/install-repo | |
with: | |
repo-name: 'kokkos' | |
repo-path: 'kokkos/kokkos' | |
repo-ref: '4.2.00' | |
cache: true | |
options: '-DCMAKE_CXX_COMPILER=${{ matrix.compiler }} | |
-DKokkos_ENABLE_SERIAL=ON | |
-DKokkos_ENABLE_OPENMP=off | |
-DKokkos_ENABLE_CUDA=off | |
-DKokkos_ENABLE_CUDA_LAMBDA=off | |
-DKokkos_ENABLE_DEBUG=on' | |
- name: build Engpar | |
uses: ./.github/actions/install-repo | |
with: | |
repo-name: 'Engpar' | |
repo-path: 'SCOREC/EnGPar' | |
repo-ref: '' | |
cache: true | |
options: '-DCMAKE_C_COMPILER=mpicc | |
-DCMAKE_CXX_COMPILER=mpicxx | |
-DCMAKE_CXX_FLAGS="-std=c++11" | |
-DENABLE_PARMETIS=OFF | |
-DENABLE_PUMI=OFF | |
-DIS_TESTING=OFF' | |
- name: build omega_h | |
uses: ./.github/actions/install-repo | |
with: | |
repo-name: 'omega_h' | |
repo-path: 'SCOREC/omega_h' | |
repo-ref: 'scorec-v10.8.4' | |
cache: true | |
options: '-DCMAKE_BUILD_TYPE=Release | |
-DBUILD_SHARED_LIBS=OFF | |
-DOmega_h_USE_Kokkos=ON | |
-DOmega_h_USE_CUDA=off | |
-DOmega_h_USE_MPI=on | |
-DMPIEXEC_EXECUTABLE=srun | |
-DBUILD_TESTING=off | |
-DCMAKE_C_COMPILER=mpicc | |
-DCMAKE_CXX_COMPILER=mpicxx | |
-DKokkos_PREFIX=${{ runner.temp }}/build-kokkos/install/lib/cmake' | |
- name: build cabana | |
uses: ./.github/actions/install-repo | |
with: | |
repo-name: 'cabana' | |
repo-path: 'ECP-copa/cabana' | |
repo-ref: '0.6.1' | |
cache: true | |
options: '-DCMAKE_CXX_COMPILER=${{ matrix.compiler }} | |
-DCMAKE_BUILD_TYPE=Release | |
-DCMAKE_DISABLE_FIND_PACKAGE_HDF5=ON | |
-DCMAKE_PREFIX_PATH=${{ runner.temp }}/build-kokkos/install/lib/cmake' | |
- name: build pumi-pic | |
uses: ./.github/actions/install-repo | |
with: | |
repo-name: 'pumi-pic' | |
repo-path: 'SCOREC/pumi-pic' | |
repo-ref: '2.1.2' | |
submodules: 'recursive' | |
cache: true | |
options: '-DCMAKE_CXX_COMPILER=mpicxx | |
-DCMAKE_BUILD_TYPE=Release | |
-DIS_TESTING=OFF | |
-DPS_IS_TESTING=OFF | |
-DTEST_DATA_DIR=$GITHUB_WORKSPACE/pumi-pic/pumipic-data | |
-DOmega_h_PREFIX=${{ runner.temp }}/build-omega_h/install | |
-DKokkos_PREFIX=${{ runner.temp }}/build-kokkos/install | |
-DEnGPar_PREFIX=${{ runner.temp }}/build-Engpar/install | |
-DCabana_PREFIX=${{ runner.temp }}/build-cabana/install | |
-DENABLE_CABANA=on | |
-DCMAKE_PREFIX_PATH=${{ runner.temp }}/build-kokkos/install/lib/cmake' | |
- name: build polyMPO | |
uses: ./.github/actions/install-repo | |
with: | |
repo-name: 'polyMPO' | |
repo-path: 'SCOREC/polyMPO' | |
repo-ref: '' | |
cache: false | |
submodules: 'recursive' | |
options: '-DCMAKE_CXX_COMPILER=mpicxx | |
-DCMAKE_BUILD_TYPE=Debug | |
-DKokkos_DIR=${{ runner.temp }}/build-kokkos/install/lib64/cmake/Kokkos | |
-DCMAKE_PREFIX_PATH=${{ runner.temp }}/build-pumi-pic/install | |
-DIS_TESTING=on' | |
- name: PolyMPO Test | |
run: ctest --test-dir ${{ runner.temp }}/build-polyMPO | |
- name: PolyMPO Print | |
if: always() | |
run: cat ${{ runner.temp }}/build-polyMPO/Testing/Temporary/LastTest.log |