-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (42 loc) · 1.27 KB
/
validation.yml
File metadata and controls
49 lines (42 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Validation
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
release:
workflow_dispatch:
env:
CMAKE_BUILD_TYPE: Release
REST_PATH: /rest/connectorslib/install
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
defaults:
run:
shell: bash
jobs:
framework-validation:
uses: rest-for-physics/framework/.github/workflows/validation.yml@master
libCheck:
name: Validate library
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- uses: actions/checkout@v3
- run: python3 pipeline/validateLibrary.py .
build-connectorslib:
name: Build only connectorslib
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- uses: actions/checkout@v3
- name: Build and install
uses: rest-for-physics/framework/.github/actions/build@master
with:
cmake-flags: "-DCMAKE_INSTALL_PREFIX=${{ env.REST_PATH }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DREST_WELCOME=ON -DRESTLIB_CONNECTORS=ON"
branch: ${{ env.BRANCH_NAME }}
- name: Load REST libraries
run: |
source ${{ env.REST_PATH }}/thisREST.sh
restRoot -b -q