diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index fb70f56d..4fdd8323 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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 @@ -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 @@ -99,11 +103,13 @@ 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 @@ -111,5 +117,6 @@ jobs: -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 diff --git a/tests/cmake/subproject/CMakeLists.txt b/tests/cmake/subproject/CMakeLists.txt index 0a91afe2..f39c607e 100644 --- a/tests/cmake/subproject/CMakeLists.txt +++ b/tests/cmake/subproject/CMakeLists.txt @@ -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}