Skip to content

Commit 2d37571

Browse files
authored
Added github pipeline to legacylib
1 parent c4626f8 commit 2d37571

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/validation.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
libCheck:
26+
name: Validate library
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+
33+
build-legacylib:
34+
name: Build only legacy
35+
runs-on: ubuntu-latest
36+
container:
37+
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
38+
steps:
39+
- uses: actions/checkout@v3
40+
- name: Build and install
41+
uses: rest-for-physics/framework/.github/actions/build@master
42+
with:
43+
cmake-flags: "-DCMAKE_INSTALL_PREFIX=${{ env.REST_PATH }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DREST_WELCOME=ON -DRESTLIB_LEGACY=ON"
44+
branch: ${{ env.BRANCH_NAME }}
45+
- name: Load REST libraries
46+
run: |
47+
source ${{ env.REST_PATH }}/thisREST.sh
48+
restRoot -b -q

0 commit comments

Comments
 (0)