Consolidate tests into single test_simple_kernel_timer.cpp #869
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: Simple build without Kokkos | |
| on: [push, pull_request] | |
| jobs: | |
| simple-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Configure using CMake and compile. | |
| run : | | |
| # The Kokkos Tools systemtap connector requires 'dtrace' | |
| sudo apt update | |
| sudo apt --yes --no-install-recommends install systemtap-sdt-dev | |
| cmake -B build -DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror" | |
| cmake --build build | |
| cmake --install build --prefix ${RUNNER_TEMP}/kokkos-installed | |
| - name: Check KokkosTools_ROOT. | |
| run : | | |
| SCRATCH_DIR="${RUNNER_TEMP}/kokkos-tools-scratch" | |
| rm -rf "${SCRATCH_DIR}" | |
| mkdir -p "${SCRATCH_DIR}" | |
| cat > "${SCRATCH_DIR}/CMakeLists.txt" <<EOF | |
| cmake_minimum_required(VERSION 3.14) | |
| project(TestFindKokkosTools) | |
| find_package(KokkosTools REQUIRED) | |
| EOF | |
| KokkosTools_ROOT=${RUNNER_TEMP}/kokkos-installed cmake -S "${SCRATCH_DIR}" -B "${SCRATCH_DIR}/build" --debug-find-pkg=KokkosTools |