diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c3a63ff..5c65832 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,6 +34,7 @@ jobs: sudo apt update && sudo apt-get install -y cmake libgtest-dev + START_DIR=$(pwd) ################################# # Install Lotman & dependencies # ################################# @@ -45,14 +46,15 @@ jobs: make -j`nproc` install # json schema validator + cd $START_DIR echo "Installing json-schema-validator" git clone https://github.com/pboettch/json-schema-validator.git && \ cd json-schema-validator && mkdir build && \ cd build && cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=$HOME/install .. && \ make -j`nproc` install - # Lotman + cd $START_DIR echo "Installing Lotman" git clone https://github.com/PelicanPlatform/lotman.git && \ cd lotman && \ @@ -67,6 +69,7 @@ jobs: ##################################### # Install Custom XRootD (temporary) # ##################################### + cd $START_DIR echo "Installing Alja's XRootD" git clone https://github.com/alja/xrootd.git && \ cd xrootd && \ @@ -97,7 +100,7 @@ jobs: working-directory: ${{runner.workspace}}/build shell: bash # Execute the build. You can specify a specific target with "--target " - run: cmake --build . --config ${{ matrix.build-type }} + run: cmake --build . --config $BUILD_TYPE - name: Unit Tests working-directory: ${{runner.workspace}}/build @@ -106,4 +109,4 @@ jobs: # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail run: | export LD_LIBRARY_PATH="$HOME/install/lib:$HOME/install/lib64:$LD_LIBRARY_PATH" - ctest -C ${{ matrix.build-type }} --verbose + ctest -C $BUILD_TYPE --verbose