Use the cmake ExternalData module to manage test data (#508) #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ubuntu | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
sio: [ON] | |
LCG: ["dev3/x86_64-ubuntu2004-gcc9-opt", | |
"dev4/x86_64-ubuntu2004-gcc9-opt"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cvmfs-contrib/github-action-cvmfs@v3 | |
- uses: aidasoft/run-lcg-view@v4 | |
with: | |
release-platform: ${{ matrix.LCG }} | |
run: | | |
echo "::group::Run CMake" | |
mkdir build install | |
cd build | |
cmake -DENABLE_SIO=${{ matrix.sio }} \ | |
-DCMAKE_INSTALL_PREFIX=../install \ | |
-DCMAKE_CXX_STANDARD=17 \ | |
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror -Wno-error=deprecated-declarations " \ | |
-DUSE_EXTERNAL_CATCH2=OFF \ | |
-DPODIO_SET_RPATH=ON \ | |
-DENABLE_RNTUPLE=ON \ | |
-G Ninja .. | |
echo "::endgroup::" | |
echo "::group::Build" | |
ninja -k0 | |
echo "::endgroup" | |
echo "::group::Run tests" | |
ctest --output-on-failure | |
echo "::endgroup::" | |
echo "::group::Install" | |
ninja install | |
echo "::endgroup::" |