From 78473468abd97015d379a68974c329d31288bec3 Mon Sep 17 00:00:00 2001 From: David Boehme Date: Thu, 8 Jul 2021 17:35:05 -0700 Subject: [PATCH] Update github actions script --- .github/workflows/cmake.yml | 5 ++++- cmake/hostconfig/github-actions.cmake | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 cmake/hostconfig/github-actions.cmake diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index d270d96d2..716ffa950 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -21,10 +21,13 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install dependencies + run: sudo apt-get install libdw-dev libunwind-dev gfortran + - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -C ${{github.workspace}}/cmake/github-actions.cmake - name: Build # Build your program with the given configuration diff --git a/cmake/hostconfig/github-actions.cmake b/cmake/hostconfig/github-actions.cmake new file mode 100644 index 000000000..7220a4763 --- /dev/null +++ b/cmake/hostconfig/github-actions.cmake @@ -0,0 +1,17 @@ +set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "") + +set(WITH_ADIAK Off CACHE BOOL "") +set(WITH_CUPTI Off CACHE BOOL "") +set(WITH_FORTRAN On CACHE BOOL "") +set(WITH_LIBDW On CACHE BOOL "") +set(WITH_LIBPFM Off CACHE BOOL "") +set(WITH_LIBUNWIND On CACHE BOOL "") +set(WITH_MPI Off CACHE BOOL "") +set(WITH_MPIT Off CACHE BOOL "") +set(WITH_NVPROF Off CACHE BOOL "") +set(WITH_PAPI Off CACHE BOOL "") +set(WITH_SAMPLER On CACHE BOOL "") +set(WITH_VTUNE Off CACHE BOOL "") + +set(WITH_DOCS Off CACHE BOOL "") +set(BUILD_TESTING On CACHE BOOL "")