Skip to content

Commit aa24dfc

Browse files
committed
[WIP] Use env context to set directories for post-install tests.
1 parent c71a5ec commit aa24dfc

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/root-ci.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,11 @@ jobs:
430430
CONTAINER_IMAGE: "registry.cern.ch/root-ci/${{ matrix.image }}:buildready" #KEEP IN SYNC WITH ABOVE
431431
CONTAINER_OPTIONS: "--security-opt label=disable --rm ${{ matrix.property == 'gpu' && '--device nvidia.com/gpu=all' || '' }}" #KEEP IN SYNC WITH ABOVE
432432

433+
env:
434+
BUILD_DIR: /github/home/ROOT-CI/build
435+
INSTALL_DIR: /github/home/ROOT-CI/install
436+
POST_INSTALL_DIR: /github/home/ROOT-CI/PostInstall
437+
433438
steps:
434439
- name: Configure large ccache
435440
if: ${{ matrix.is_special }}
@@ -574,19 +579,19 @@ jobs:
574579
ccache -s || true
575580
576581
- name: Install
577-
run: "cmake --install /github/home/ROOT-CI/build/ --prefix /github/home/ROOT-CI/install"
582+
run: "cmake --install ${{ env.BUILD_DIR }} --prefix ${{ env.INSTALL_DIR }}"
578583

579584
- name: Post-install build
580585
run: |
581-
cmake -S test/PostInstall/ -B /github/home/ROOT-CI/PostInstall -DCMAKE_PREFIX_PATH=/github/home/ROOT-CI/install;
582-
cmake --build /github/home/ROOT-CI/PostInstall;
586+
cmake -S test/PostInstall/ -B ${{ env.POST_INSTALL_DIR }} -DCMAKE_PREFIX_PATH=${{ env.INSTALL_DIR }};
587+
cmake --build ${{ env.POST_INSTALL_DIR }};
583588
584589
- name: Post-install test
585-
working-directory: /github/home/ROOT-CI/PostInstall
590+
working-directory: ${{ env.POST_INSTALL_DIR }}
586591
run: ctest -j $(nproc)
587592

588593
- name: Check installed headers
589-
run: bash test/PostInstall/check-headers.sh /github/home/ROOT-CI/install/include
594+
run: bash test/PostInstall/check-headers.sh ${{ env.INSTALL_DIR }}/include
590595

591596
event_file:
592597
# For any event that is not a PR, the CI will always run. In PRs, the CI

0 commit comments

Comments
 (0)