-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Ananya2003Gupta/juliarebase
Rebased master branch with julia
- Loading branch information
Showing
210 changed files
with
11,871 additions
and
2,247 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: edm4hep | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
LCG: ["LCG_102/x86_64-centos7-gcc11-opt", | ||
"LCG_102/x86_64-ubuntu2004-gcc9-opt"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: podio | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: key4hep/EDM4hep | ||
path: edm4hep | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: catchorg/Catch2 | ||
path: catch2 | ||
- uses: cvmfs-contrib/github-action-cvmfs@v3 | ||
- uses: aidasoft/run-lcg-view@v4 | ||
with: | ||
release-platform: ${{ matrix.LCG }} | ||
run: | | ||
STARTDIR=$(pwd) | ||
echo "::group::Build Catch2" | ||
cd $STARTDIR/catch2 | ||
mkdir build && cd build | ||
cmake -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=../install -G Ninja .. | ||
ninja -k0 install | ||
export CMAKE_PREFIX_PATH=$STARTDIR/catch2/install:$CMAKE_PREFIX_PATH | ||
echo "::endgroup::" | ||
echo "::group::Build podio" | ||
cd $STARTDIR/podio | ||
mkdir build && cd build | ||
cmake -DENABLE_SIO=ON \ | ||
-DCMAKE_INSTALL_PREFIX=../install \ | ||
-DCMAKE_CXX_STANDARD=17 \ | ||
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror -Wno-error=deprecated-declarations " \ | ||
-DUSE_EXTERNAL_CATCH2=ON \ | ||
-DBUILD_TESTING=OFF\ | ||
-G Ninja .. | ||
ninja -k0 | ||
echo "::endgroup::" | ||
echo "::group::Test and install podio" | ||
ctest --output-on-failure | ||
ninja install | ||
cd $STARTDIR/podio | ||
source init.sh && source env.sh | ||
echo "::endgroup::" | ||
echo "::group::Build and test EDM4hep" | ||
cd $STARTDIR/edm4hep | ||
mkdir build && cd build | ||
cmake -DCMAKE_CXX_STANDARD=17 \ | ||
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror " \ | ||
-DUSE_EXTERNAL_CATCH2=ON \ | ||
-G Ninja .. | ||
ninja -k0 | ||
ctest --output-on-failure | ||
echo "::endgroup::" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,47 @@ | ||
name: pre-commit | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cvmfs-contrib/github-action-cvmfs@v2 | ||
- uses: aidasoft/run-lcg-view@v3 | ||
- uses: actions/checkout@v3 | ||
- uses: cvmfs-contrib/github-action-cvmfs@v3 | ||
- uses: aidasoft/run-lcg-view@v4 | ||
with: | ||
release-platform: LCG_99/x86_64-centos7-clang10-opt | ||
container: centos7 | ||
view-path: /cvmfs/sw-nightlies.hsf.org/key4hep | ||
run: | | ||
export PYTHONPATH=$(python -m site --user-site):$PYTHONPATH | ||
echo "::group::Setup pre-commit" | ||
export PATH=/root/.local/bin:$PATH | ||
pip install argparse --user | ||
pip install pre-commit --user | ||
# Newer versions of git are more cautious around the github runner | ||
# environment and without this git rev-parse --show-cdup in pre-commit | ||
# fails | ||
git config --global --add safe.directory $(pwd) | ||
pip install pre-commit | ||
pip install pylint==2.12.2 | ||
pip install flake8 | ||
echo "::endgroup::" | ||
echo "::group::Run CMake" | ||
mkdir build | ||
cd build | ||
cmake .. -DENABLE_SIO=ON \ | ||
-DENABLE_RNTUPLE=ON \ | ||
-DCMAKE_CXX_STANDARD=17 \ | ||
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror "\ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | ||
-DUSE_EXTERNAL_CATCH2=OFF | ||
ln -s $(pwd)/compile_commands.json ../ | ||
cd .. | ||
echo "::endgroup::" | ||
echo "::group::Run pre-commit" | ||
pre-commit run --show-diff-on-failure \ | ||
--color=always \ | ||
--all-files | ||
echo "::endgroup::" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,51 @@ | ||
name: linux | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sio: [ON] | ||
LCG: ["LCG_99/x86_64-centos7-gcc8-opt", | ||
"LCG_99/x86_64-centos7-clang10-opt", | ||
"LCG_99/x86_64-centos8-gcc10-opt", | ||
"dev3/x86_64-centos7-clang12-opt", | ||
RNTUPLE: [ON] | ||
LCG: ["dev3/x86_64-centos7-clang12-opt", | ||
"dev4/x86_64-centos7-gcc11-opt", | ||
"dev4/x86_64-centos7-clang12-opt"] | ||
include: | ||
- LCG: "LCG_102/x86_64-centos7-clang12-opt" | ||
RNTUPLE: OFF | ||
- LCG: "LCG_102/x86_64-centos8-gcc11-opt" | ||
RNTUPLE: OFF | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cvmfs-contrib/github-action-cvmfs@v2 | ||
- uses: aidasoft/run-lcg-view@v2 | ||
- 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 }} \ | ||
cmake -DENABLE_SIO=ON \ | ||
-DENABLE_RNTUPLE=${{ matrix.RNTUPLE }} \ | ||
-DCMAKE_INSTALL_PREFIX=../install \ | ||
-DCMAKE_CXX_STANDARD=17 \ | ||
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror " \ | ||
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror -Wno-error=deprecated-declarations " \ | ||
-DUSE_EXTERNAL_CATCH2=OFF \ | ||
-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::" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,46 @@ | ||
name: ubuntu | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sio: [ON] | ||
LCG: ["LCG_99/x86_64-ubuntu2004-gcc9-opt", | ||
"dev3/x86_64-ubuntu2004-gcc9-opt", | ||
LCG: ["dev3/x86_64-ubuntu2004-gcc9-opt", | ||
"dev4/x86_64-ubuntu2004-gcc9-opt"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cvmfs-contrib/github-action-cvmfs@v2 | ||
- uses: aidasoft/run-lcg-view@v2 | ||
- 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 " \ | ||
-DUSE_EXTERNAL_CATCH2=OFF \ | ||
-G Ninja .. | ||
-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::" |
Oops, something went wrong.