File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 39
39
required : true
40
40
type : boolean
41
41
description : Whether or not to run the test job.
42
+ download_sources :
43
+ required : true
44
+ type : boolean
45
+ description : Whether to download the linux sources into the working directory.
46
+ default : false
42
47
secrets :
43
48
AWS_ROLE_ARN :
44
49
required : true
54
59
runs_on : ${{ inputs.runs_on }}
55
60
llvm-version : ${{ inputs.llvm-version }}
56
61
kernel : ${{ inputs.kernel }}
62
+ download_sources : ${{ inputs.download_sources }}
57
63
58
64
test :
59
65
if : ${{ inputs.run_tests }}
Original file line number Diff line number Diff line change 28
28
required : true
29
29
type : string
30
30
description : The kernel to run the test against. For KPD this is always LATEST, which runs against a newly built kernel.
31
+ download_sources :
32
+ required : true
33
+ type : boolean
34
+ description : Whether to download the linux sources into the working directory.
35
+ default : false
31
36
32
37
33
38
jobs :
@@ -46,12 +51,12 @@ jobs:
46
51
# builds (which may check out some earlier upstream change).
47
52
with :
48
53
fetch-depth : 50
49
- - if : ${{ github.repository == 'kernel-patches/vmtest' }}
54
+ - if : ${{ inputs.download_sources }}
50
55
name : Download bpf-next tree
51
56
uses : libbpf/ci/get-linux-source@main
52
57
with :
53
58
dest : ' .kernel'
54
- - if : ${{ github.repository == 'kernel-patches/vmtest' }}
59
+ - if : ${{ inputs.download_sources }}
55
60
name : Move linux source in place
56
61
shell : bash
57
62
run : |
Original file line number Diff line number Diff line change 50
50
run_veristat : ${{ matrix.run_veristat }}
51
51
# We only run tests on pull requests.
52
52
run_tests : ${{ github.event_name != 'push' }}
53
+ # Download sources
54
+ download_sources : ${{ github.repository == 'kernel-patches/vmtest' }}
53
55
secrets :
54
56
AWS_ROLE_ARN : ${{ secrets.AWS_ROLE_ARN }}
You can’t perform that action at this time.
0 commit comments