Skip to content

Commit

Permalink
Update github actions script
Browse files Browse the repository at this point in the history
  • Loading branch information
daboehme committed Jul 9, 2021
1 parent 57ea759 commit 7847346
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions cmake/hostconfig/github-actions.cmake
Original file line number Diff line number Diff line change
@@ -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 "")

0 comments on commit 7847346

Please sign in to comment.