File tree 2 files changed +41
-13
lines changed
2 files changed +41
-13
lines changed Original file line number Diff line number Diff line change
1
+ name : Framework 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/wimplib/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@submodule-validation
Original file line number Diff line number Diff line change 1
1
name : Validation
2
2
3
3
on :
4
- push :
5
- branches : [ "master" ]
6
- pull_request :
7
- branches : [ "master" ]
8
- release :
9
-
10
4
workflow_dispatch :
5
+ workflow_call :
11
6
12
7
env :
13
8
CMAKE_BUILD_TYPE : Release
14
9
REST_PATH : /rest/wimplib/install
10
+ WIMP_LIB_PATH : wimplib
15
11
BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
16
12
17
13
defaults :
18
14
run :
19
15
shell : bash
20
16
21
17
jobs :
22
- framework-validation :
23
- uses : rest-for-physics/framework/.github/workflows/validation.yml@master
18
+ precommit-config :
19
+ name : Validate pre-commit config
20
+ runs-on : ubuntu-latest
21
+ container :
22
+ image : ghcr.io/lobis/root-geant4-garfield:rest-for-physics
23
+ steps :
24
+ - name : Checkout wimplib
25
+ uses : rest-for-physics/framework/.github/actions/checkout@submodule-validation
26
+ with :
27
+ branch : ${{ env.BRANCH_NAME }}
28
+ repository : rest-for-physics/wimplib
29
+ path : ${{ env.WIMP_LIB_PATH }}
30
+ - name : Verify pre-commit config files match
31
+ run : |
32
+ cd ${{ env.WIMP_LIB_PATH }}
33
+ curl https://raw.githubusercontent.com/rest-for-physics/framework/master/scripts/validatePreCommitConfig.py | python
24
34
25
35
build-wimplib :
26
36
name : Build only wimplib
27
37
runs-on : ubuntu-latest
28
38
container :
29
39
image : ghcr.io/lobis/root-geant4-garfield:rest-for-physics
30
40
steps :
31
- - uses : actions/checkout@v3
32
41
- name : Build and install
33
42
uses : rest-for-physics/framework/.github/actions/build@master
34
43
with :
35
44
cmake-flags : " -DCMAKE_INSTALL_PREFIX=${{ env.REST_PATH }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DREST_WELCOME=ON -DRESTLIB_WIMP=ON"
36
45
branch : ${{ env.BRANCH_NAME }}
37
- - name : Verify pre-commit config files match
38
- run : |
39
- cd $GITHUB_WORKSPACE
40
- curl https://raw.githubusercontent.com/rest-for-physics/framework/master/scripts/validatePreCommitConfig.py | python
41
46
- name : Cache framework installation
42
47
id : wimplib-install-cache
43
48
uses : actions/cache@v3
You can’t perform that action at this time.
0 commit comments