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

Github pipeline #245

Merged
merged 11 commits into from
Jun 13, 2022
37 changes: 37 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'build'
description: 'Build and install framework'
inputs:
branch:
description: 'Branch to checkout framework repo'
required: true
default: 'master'
cmakeflags:
description: 'CMake flags for the build'
required: true
default: '-DCMAKE_INSTALL_PREFIX=install -DCMAKE_PREFIX_PATH=$GARFIELD_INSTALL -DREST_ALL_LIBS=ON -DREST_G4=ON -DREST_GARFIELD=ON'
buildpath:
description: 'Path where the framework is built'
required: false
default: 'build'

runs:
using: "composite"
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: rest-for-physics/framework
path: framework
- name: Checkout framework branch
run: |
cd framework
./scripts/checkoutRemoteBranch.sh ${{ inputs.branch }}
python3 pull-submodules.py --force --dontask --latest:${{ inputs.branch }}
shell: bash
- name: Build and install
run: |
cd framework
mkdir -p ${{ inputs.buildpath }}
cmake -B ${{ inputs.buildpath }} ${{ inputs.cmakeflags }}
make -C ${{ inputs.buildpath }} -j8 install
shell: bash
Loading