Nightly #701
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: Nightly | |
on: | |
push: | |
branches: | |
- nightly_testing | |
schedule: | |
- cron: '0 3 * * *' | |
jobs: | |
CI: | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
distro: ['ubuntu:latest'] | |
openmp: ['ON', 'OFF'] | |
cmake_build_type: ['Debug'] | |
runs-on: ubuntu-20.04 | |
container: ghcr.io/ecp-copa/ci-containers/${{ matrix.distro }} | |
steps: | |
- name: Checkout kokkos | |
uses: actions/[email protected] | |
with: | |
repository: kokkos/kokkos | |
ref: develop | |
path: kokkos | |
- name: Build kokkos | |
working-directory: kokkos | |
run: | | |
cmake -B build \ | |
-DCMAKE_INSTALL_PREFIX=$HOME/kokkos \ | |
-DKokkos_ENABLE_OPENMP=${{ matrix.openmp }} \ | |
-DKokkos_ENABLE_HWLOC=ON \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} | |
cmake --build build --parallel 2 | |
cmake --install build | |
- name: Checkout arborx | |
uses: actions/[email protected] | |
with: | |
repository: arborx/ArborX | |
ref: v1.7 | |
path: arborx | |
- name: Build arborx | |
working-directory: arborx | |
run: | | |
cmake -B build \ | |
-DCMAKE_PREFIX_PATH=${HOME}/kokkos \ | |
-DCMAKE_INSTALL_PREFIX=$HOME/arborx \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} | |
cmake --build build --parallel 2 | |
cmake --install build | |
- name: Checkout Cabana | |
uses: actions/[email protected] | |
with: | |
repository: ECP-CoPA/Cabana | |
ref: master | |
path: cabana | |
- name: Build Cabana | |
working-directory: cabana | |
run: | | |
cmake -B build \ | |
-DCMAKE_INSTALL_PREFIX=$HOME/cabana \ | |
-DCMAKE_PREFIX_PATH="$HOME/kokkos" \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} | |
cmake --build build --parallel 2 | |
cmake --install build | |
- name: Checkout json | |
uses: actions/[email protected] | |
with: | |
repository: nlohmann/json | |
ref: develop | |
path: json | |
- name: Build json | |
working-directory: json | |
run: | | |
cmake -B build \ | |
-DCMAKE_INSTALL_PREFIX=$HOME/json \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \ | |
-DJSON_BuildTests=OFF | |
cmake --build build --parallel 2 | |
cmake --install build | |
- name: Checkout Picasso | |
uses: actions/[email protected] | |
- name: Build Picasso | |
run: | | |
cmake -B build \ | |
-DCMAKE_INSTALL_PREFIX=$HOME/picasso \ | |
-DMPIEXEC_MAX_NUMPROCS=2 -DMPIEXEC_PREFLAGS="--oversubscribe" \ | |
-DCMAKE_PREFIX_PATH="$HOME/arborx;$HOME/cabana;$HOME/json" \ | |
-DCMAKE_CXX_FLAGS="-Wall -pedantic ${cmake_cxx_flags}" \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \ | |
-DPicasso_ENABLE_TESTING=ON \ | |
-DPicasso_REQUIRE_SILO=ON \ | |
${cmake_opts} | |
cmake --build build --parallel 2 | |
cmake --install build | |
- name: Test Picasso | |
run: | | |
CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test |