Skip to content

Commit

Permalink
Merge pull request #246 from rest-for-physics/github-pipeline-cache-bug
Browse files Browse the repository at this point in the history
Updated validation GitHub Action
  • Loading branch information
juanangp authored Jun 13, 2022
2 parents f881d33 + 57b5768 commit 750d2b0
Show file tree
Hide file tree
Showing 4 changed files with 386 additions and 469 deletions.
32 changes: 16 additions & 16 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: 'build'
description: 'Build and install framework'
name: "build"
description: "Build and install framework"
inputs:
branch:
description: 'Branch to checkout framework repo'
description: "Branch to checkout framework repo"
required: true
default: 'master'
cmakeflags:
description: 'CMake flags for the build'
default: "master"
cmake-flags:
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'
default: "-DCMAKE_INSTALL_PREFIX=install -DCMAKE_PREFIX_PATH=$GARFIELD_INSTALL -DREST_ALL_LIBS=ON -DREST_G4=ON -DREST_GARFIELD=ON"
build-path:
description: "Path where the framework is built"
required: false
default: 'build'
default: "build"

runs:
using: "composite"
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: rest-for-physics/framework
path: framework
repository: rest-for-physics/framework
path: framework
- name: Checkout framework branch
run: |
cd framework
Expand All @@ -31,7 +31,7 @@ runs:
- name: Build and install
run: |
cd framework
mkdir -p ${{ inputs.buildpath }}
cmake -B ${{ inputs.buildpath }} ${{ inputs.cmakeflags }}
make -C ${{ inputs.buildpath }} -j8 install
mkdir -p ${{ inputs.build-path }}
cmake -B ${{ inputs.build-path }} ${{ inputs.cmake-flags }}
make -C ${{ inputs.build-path }} -j8 install
shell: bash
Loading

0 comments on commit 750d2b0

Please sign in to comment.