Skip to content

Commit

Permalink
install and build user project
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith committed Sep 6, 2024
1 parent f079f68 commit dc3ff3c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,21 @@ jobs:
env:
MPICH_CXX: ${{matrix.compiler.CXX}}
MPICH_CC: ${{matrix.compiler.CC}}
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} -j
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} -j --target install

- name: Test
env:
MPICH_CXX: ${{matrix.compiler.CXX}}
MPICH_CC: ${{matrix.compiler.CC}}
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure -C ${{matrix.build_type}}

- name: Build User Project
# only need to test with a single build config if the installed cmake config files work
if: ${{ matrix.compiler == 'GNU' }} && ${{ matrix.build_type == 'Release' }}
env:
MPICH_CXX: ${{matrix.compiler.CXX}}
MPICH_CC: ${{matrix.compiler.CC}}
run: |
cmake -S ${{github.workspace}}/doc -B ${{github.workspace}}/buildExample -DCMAKE_CXX_COMPILER=mpicxx -DSCOREC_PREFIX=${{github.workspace}}/build/install
cmake --build ${{github.workspace}}/buildExample

0 comments on commit dc3ff3c

Please sign in to comment.