File tree 1 file changed +27
-3
lines changed
1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change 7
7
inputs :
8
8
gtest_filter :
9
9
description : ' Google Test filter'
10
+ test_linux :
11
+ description : ' Test Linux'
12
+ type : boolean
13
+ default : true
14
+ test_macos :
15
+ description : ' Test MacOS'
16
+ type : boolean
17
+ default : true
18
+ test_windows :
19
+ description : ' Test Windows'
20
+ type : boolean
21
+ default : true
10
22
11
23
env :
12
24
GTEST_FILTER : ${{ github.event.inputs.gtest_filter || '*' }}
13
25
14
26
jobs :
15
27
ubuntu :
16
28
runs-on : ubuntu-latest
17
- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
29
+ if : >
30
+ (github.event_name == 'push') ||
31
+ (github.event_name == 'pull_request' &&
32
+ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) ||
33
+ (github.event_name == 'workflow_dispatch' && github.event.inputs.test_linux == 'true')
18
34
steps :
19
35
- name : checkout
20
36
uses : actions/checkout@v4
27
43
28
44
macos :
29
45
runs-on : macos-latest
30
- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
46
+ if : >
47
+ (github.event_name == 'push') ||
48
+ (github.event_name == 'pull_request' &&
49
+ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) ||
50
+ (github.event_name == 'workflow_dispatch' && github.event.inputs.test_macos == 'true')
31
51
steps :
32
52
- name : checkout
33
53
uses : actions/checkout@v4
38
58
39
59
windows :
40
60
runs-on : windows-latest
41
- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
61
+ if : >
62
+ (github.event_name == 'push') ||
63
+ (github.event_name == 'pull_request' &&
64
+ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) ||
65
+ (github.event_name == 'workflow_dispatch' && github.event.inputs.test_windows == 'true')
42
66
steps :
43
67
- name : Prepare Git for Checkout on Windows
44
68
run : |
You can’t perform that action at this time.
0 commit comments