Fix a few easy to fix issues flagged by coverity (#535) #774
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: linux | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
LCG: ["dev3/x86_64-el9-clang16-opt", | |
"dev4/x86_64-el9-clang16-opt"] | |
CXX_STANDARD: [20] | |
RNTUPLE: [ON] | |
include: | |
- LCG: "dev4/x86_64-centos7-gcc11-opt" | |
CXX_STANDARD: 17 | |
- LCG: "LCG_102/x86_64-centos7-clang12-opt" | |
RNTUPLE: OFF | |
CXX_STANDARD: 17 | |
- LCG: "LCG_102/x86_64-centos8-gcc11-opt" | |
RNTUPLE: OFF | |
CXX_STANDARD: 17 | |
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=ON \ | |
-DENABLE_JULIA=ON \ | |
-DENABLE_RNTUPLE=${{ matrix.RNTUPLE }} \ | |
-DCMAKE_INSTALL_PREFIX=../install \ | |
-DCMAKE_CXX_STANDARD=${{ matrix.CXX_STANDARD }} \ | |
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror -Wno-error=deprecated-declarations " \ | |
-DUSE_EXTERNAL_CATCH2=OFF \ | |
-DPODIO_USE_CLANG_FORMAT=AUTO \ | |
-G Ninja .. | |
echo "::endgroup::" | |
echo "::group::Build" | |
ninja -k0 | |
echo "::endgroup" | |
echo "::group::Julia StaticArrays Package Install" | |
julia -e 'import Pkg; Pkg.add("StaticArrays")' | |
echo "::endgroup" | |
echo "::group::Run tests" | |
ctest --output-on-failure | |
echo "::endgroup::" | |
echo "::group::Install" | |
ninja install | |
echo "::endgroup::" |