This repository was archived by the owner on Oct 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build-test
2
+ on :
3
+ # makes workflow reusable
4
+ workflow_call :
5
+ inputs :
6
+ label :
7
+ description : " requested runner label (specifies instance)"
8
+ type : string
9
+ required : true
10
+ timeout :
11
+ description : " time limit for run in minutes "
12
+ type : string
13
+ required : true
14
+ gitref :
15
+ description : " git commit hash or branch name"
16
+ type : string
17
+ required : true
18
+ python :
19
+ description : " python version, e.g. 3.10.12"
20
+ type : string
21
+ required : true
22
+
23
+ # makes workflow manually callable
24
+ workflow_dispatch :
25
+ inputs :
26
+ label :
27
+ description : " requested runner label (specifies instance)"
28
+ type : string
29
+ required : true
30
+ timeout :
31
+ description : " time limit for run in minutes "
32
+ type : string
33
+ required : true
34
+ gitref :
35
+ description : " git commit hash or branch name"
36
+ type : string
37
+ required : true
38
+ python :
39
+ description : " python version, e.g. 3.10.12"
40
+ type : string
41
+ required : true
42
+
43
+ jobs :
44
+
45
+ BUILD-TEST :
46
+
47
+ runs-on : ${{ inputs.label }}
48
+ timeout-minutes : ${{ fromJson(inputs.timeout) }}
49
+
50
+ steps :
51
+
52
+ - name : checkout
53
+ id : checkout
54
+ uses : actions/checkout@v4
55
+ with :
56
+ fetch-depth : 0
57
+ ref : ${{ inputs.gitref }}
58
+ submodules : recursive
59
+
60
+ - name : hello world
61
+ run : |
62
+ echo "HELLO WORLD" >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments