Skip to content

Commit 877fe4e

Browse files
committed
[CI] Enable a small post-install CMake build test.
1 parent 61589f1 commit 877fe4e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/root-ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,11 @@ jobs:
442442
CONTAINER_IMAGE: "registry.cern.ch/root-ci/${{ matrix.image }}:buildready" #KEEP IN SYNC WITH ABOVE
443443
CONTAINER_OPTIONS: "--security-opt label=disable --rm ${{ matrix.property == 'gpu' && '--device nvidia.com/gpu=all' || '' }}" #KEEP IN SYNC WITH ABOVE
444444

445+
env:
446+
BUILD_DIR: /github/home/ROOT-CI/build
447+
INSTALL_DIR: /github/home/ROOT-CI/install
448+
POST_INSTALL_DIR: /github/home/ROOT-CI/PostInstall
449+
445450
steps:
446451
- name: Configure large ccache
447452
if: ${{ matrix.is_special }}
@@ -586,6 +591,18 @@ jobs:
586591
run: |
587592
ccache -s || true
588593
594+
- name: Install
595+
run: "cmake --install ${{ env.BUILD_DIR }} --prefix ${{ env.INSTALL_DIR }}"
596+
597+
- name: Build post-install test project
598+
run: |
599+
cmake -S test/PostInstall/ -B ${{ env.POST_INSTALL_DIR }} -DCMAKE_PREFIX_PATH=${{ env.INSTALL_DIR }};
600+
cmake --build ${{ env.POST_INSTALL_DIR }};
601+
602+
- name: CTest in post-install test project
603+
working-directory: ${{ env.POST_INSTALL_DIR }}
604+
run: ctest -j $(nproc)
605+
589606
event_file:
590607
# For any event that is not a PR, the CI will always run. In PRs, the CI
591608
# can be skipped if the tag [skip-ci] or [skip ci] is written in the title.

0 commit comments

Comments
 (0)