Skip to content

Commit 8314243

Browse files
authored
Merge pull request #3 from rest-for-physics/legacylib-validation
Added github pipeline to legacylib
2 parents c4626f8 + bfe8ae6 commit 8314243

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/validation.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Validation
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
release:
9+
10+
workflow_dispatch:
11+
12+
env:
13+
CMAKE_BUILD_TYPE: Release
14+
REST_PATH: /rest/legacylib/install
15+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
16+
17+
defaults:
18+
run:
19+
shell: bash
20+
21+
jobs:
22+
framework-validation:
23+
uses: rest-for-physics/framework/.github/workflows/validation.yml@master
24+
25+
build-legacylib:
26+
name: Build only legacy
27+
runs-on: ubuntu-latest
28+
container:
29+
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
30+
steps:
31+
- uses: actions/checkout@v3
32+
- name: Build and install
33+
uses: rest-for-physics/framework/.github/actions/build@master
34+
with:
35+
cmake-flags: "-DCMAKE_INSTALL_PREFIX=${{ env.REST_PATH }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DREST_WELCOME=ON -DRESTLIB_LEGACY=ON"
36+
branch: ${{ env.BRANCH_NAME }}
37+
- name: Load REST libraries
38+
run: |
39+
source ${{ env.REST_PATH }}/thisREST.sh
40+
restRoot -b -q

0 commit comments

Comments
 (0)