File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Build Rootfs
2
2
on :
3
+ push :
3
4
workflow_dispatch :
4
5
inputs :
5
6
host-os :
25
26
arch :
26
27
required : true
27
28
type : string
28
- # TODO: Actually use this
29
- cache :
29
+ use-cached :
30
30
required : false
31
31
type : boolean
32
32
default : true
33
33
34
34
jobs :
35
35
check-cache :
36
36
name : Check cache (${{ inputs.arch }})
37
+ if : inputs.use-cached == 'true'
37
38
runs-on : ${{ inputs.host-os }}
38
39
outputs :
39
40
cache-hit : ${{ steps.cache-check.outputs.cache-hit }}
69
70
rootfs :
70
71
name : rootfs (${{ inputs.arch }})
71
72
needs : check-cache
72
- if : needs.check-cache.outputs.cache-hit != 'true'
73
+ if : inputs.use-cached == 'false' || needs.check-cache.outputs.cache-hit != 'true'
73
74
runs-on : ${{ inputs.host-os }}
74
75
env :
75
76
# 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