File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 12
12
options :
13
13
- x86_64
14
14
- arm64
15
- cache :
16
- required : false
17
- type : boolean
18
- default : false
15
+ use-cached :
16
+ required : true
17
+ type : string
18
+ default : true
19
19
workflow_call :
20
20
inputs :
21
21
host-os :
25
25
arch :
26
26
required : true
27
27
type : string
28
- # TODO: Actually use this
29
- cache :
28
+ use-cached :
30
29
required : false
31
30
type : boolean
32
31
default : true
33
32
34
33
jobs :
35
34
check-cache :
36
35
name : Check cache (${{ inputs.arch }})
36
+ if : inputs.use-cached == true
37
37
runs-on : ${{ inputs.host-os }}
38
38
outputs :
39
39
cache-hit : ${{ steps.cache-check.outputs.cache-hit }}
69
69
rootfs :
70
70
name : rootfs (${{ inputs.arch }})
71
71
needs : check-cache
72
- if : needs.check-cache.outputs.cache-hit != 'true'
72
+ if : inputs.use-cached == 'false' || needs.check-cache.outputs.cache-hit != 'true'
73
73
runs-on : ${{ inputs.host-os }}
74
74
env :
75
75
# ARCH isn't directly used by the workflow, but it is used by the `make` commands
You can’t perform that action at this time.
0 commit comments