Skip to content

Commit

Permalink
Merge pull request #3 from wavefunction91/bugfix/ci-hdf5
Browse files Browse the repository at this point in the history
[CI] Install HDF5 in GH Actions
  • Loading branch information
wavefunction91 committed Apr 21, 2022
2 parents d9883fe + 56788ae commit 78e8c4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:

- name: Install MPICH
run: sudo apt-get install mpich

- name: Install HDF5
run: sudo apt-get install libhdf5-dev hdf5-tools hdf5-helpers

- name: Install NumPy
run: sudo pip3 install numpy
Expand All @@ -91,6 +94,7 @@ jobs:
run: cmake --build ${{runner.workspace}}/build --target install

- name: CMake Subproject Configure
if: ${{ matrix.build_type == 'Release' }}
shell: bash
run: cmake -H$GITHUB_WORKSPACE/tests/cmake/subproject
-B${{runner.workspace}}/cmake_subproject_build
Expand All @@ -99,17 +103,20 @@ jobs:
-DCMAKE_TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/${GH_ACTIONS_TOOLCHAIN}

- name: CMake Subproject Build
if: ${{ matrix.build_type == 'Release' }}
shell: bash
run: cmake --build ${{runner.workspace}}/cmake_subproject_build -j2


- name: CMake Discovery Configure
if: ${{ matrix.build_type == 'Release' }}
shell: bash
run: cmake -H$GITHUB_WORKSPACE/tests/cmake/discovery
-B${{runner.workspace}}/cmake_discovery_build
-DCMAKE_PREFIX_PATH=${{runner.workspace}}/install
-DCMAKE_TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/${GH_ACTIONS_TOOLCHAIN}

- name: CMake Discovery Build
if: ${{ matrix.build_type == 'Release' }}
shell: bash
run: cmake --build ${{runner.workspace}}/cmake_discovery_build -j2
1 change: 1 addition & 0 deletions tests/cmake/subproject/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ message( STATUS "Pulling GIT_REVISION = ${GIT_REVISION}" )


include( FetchContent )
set( FETCHCONTENT_SOURCE_DIR_GAUXC ${CMAKE_CURRENT_LIST_DIR}/../../.. )
FetchContent_Declare( gauxc
GIT_REPOSITORY "${GITHUB_URL}/${GITHUB_REPOSITORY}"
GIT_TAG ${GIT_REVISION}
Expand Down

0 comments on commit 78e8c4f

Please sign in to comment.