Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CI job to build restG4 with framework on master ref #54

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -453,3 +453,28 @@ jobs:
export REST_ISOTOPE=Be7
restG4 singleDecay.rml
restRoot -b -q Validate.C'("Run00002_Be7_SingleChainDecay.root", 1)'

# Build restG4 with `master` version of framework. This job can fail without failing the workflow
framework-install-master:
name: Install framework with restG4 on `master` version of framework just with Geant4lib (on the ref found on framework)
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-dev
steps:
- name: Checkout framework
run: |
git clone https://github.com/rest-for-physics/framework.git ${{ env.REST_FRAMEWORK_SOURCE_DIR }}
cd ${{ env.REST_FRAMEWORK_SOURCE_DIR }}
git log -1 --stat # should always be on master branch
- uses: actions/checkout@v3
- name: Setup, build and install
continue-on-error: true
run: |
cd ${{ env.REST_FRAMEWORK_SOURCE_DIR }}
git submodule init source/libraries/geant4 && git submodule update source/libraries/geant4
cd ${{ env.REST_FRAMEWORK_SOURCE_DIR }}
rm -rf source/packages/restG4/ && cp -r $GITHUB_WORKSPACE source/packages/restG4
cd ${{ env.REST_FRAMEWORK_SOURCE_DIR }}
mkdir -p ${{ env.REST_FRAMEWORK_SOURCE_DIR }}/build && cd ${{ env.REST_FRAMEWORK_SOURCE_DIR }}/build
cmake ../ -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DREST_WELCOME=ON -DREST_G4=ON -DCMAKE_INSTALL_PREFIX=${{ env.REST_PATH }}
make -j4 install