@@ -36,10 +36,10 @@ jobs:
36
36
uses : docker/setup-buildx-action@v3
37
37
38
38
- name : Cache ccache output
39
- uses : actions/cache@v3
39
+ uses : actions/cache@v4
40
40
with :
41
41
path : ccache
42
- key : ccache-${{ inputs.kernel_version }}-${{ hashFiles('config') }}
42
+ key : ccache-${{ inputs.kernel_version }}-${{ hashFiles('config-* ') }}
43
43
44
44
- name : Inject ccache into builder
45
45
uses :
reproducible-containers/[email protected]
63
63
annotations : |
64
64
org.opencontainers.image.licenses=GPLv2
65
65
66
+ - name : Kernel metadata (debug)
67
+ id : debug-meta
68
+ uses : docker/metadata-action@v5
69
+ with :
70
+ images : ghcr.io/${{ github.repository_owner }}/ci-kernels
71
+ flavor : latest=false
72
+ tags : |
73
+ type=raw,value=${{ inputs.kernel_version }},suffix=-debug
74
+ type=match,pattern=^\d+\.\d+,group=0,value=${{ inputs.kernel_version }},suffix=-debug
75
+ type=raw,value=${{ inputs.static_tag }},enable=${{ inputs.static_tag != '' }},suffix=-debug
76
+
77
+ labels : |
78
+ org.opencontainers.image.licenses=GPLv2
79
+ annotations : |
80
+ org.opencontainers.image.licenses=GPLv2
81
+
66
82
- name : Selftests metadata
67
83
id : selftests-meta
68
84
uses : docker/metadata-action@v5
72
88
tags : |
73
89
type=raw,value=${{ inputs.kernel_version }},suffix=-selftests
74
90
type=match,pattern=^\d+\.\d+,group=0,value=${{ inputs.kernel_version }},suffix=-selftests
75
- type=raw,value=${{ inputs.static_tag }},suffix=-selftests,enable=${{ inputs.static_tag != '' }}
91
+ type=raw,value=${{ inputs.static_tag }},enable=${{ inputs.static_tag != '' }},suffix=-selftests
92
+ labels : |
93
+ org.opencontainers.image.licenses=GPLv2
94
+ annotations : |
95
+ org.opencontainers.image.licenses=GPLv2
96
+
97
+ - name : Selftests metadata (debug)
98
+ id : selftests-debug-meta
99
+ uses : docker/metadata-action@v5
100
+ with :
101
+ images : ghcr.io/${{ github.repository_owner }}/ci-kernels
102
+ flavor : latest=false
103
+ tags : |
104
+ type=raw,value=${{ inputs.kernel_version }},suffix=-selftests-debug
105
+ type=match,pattern=^\d+\.\d+,group=0,value=${{ inputs.kernel_version }},suffix=-selftests-debug
106
+ type=raw,value=${{ inputs.static_tag }},enable=${{ inputs.static_tag != '' }},suffix=-selftests-debug
76
107
labels : |
77
108
org.opencontainers.image.licenses=GPLv2
78
109
annotations : |
@@ -101,6 +132,21 @@ jobs:
101
132
annotations : ${{ steps.meta.outputs.annotations }}
102
133
outputs : ${{ github.ref == 'refs/heads/main' && 'type=registry' || 'type=local,dest=/tmp/build/vmlinux' }}
103
134
135
+ - name : Build kernel (debug)
136
+ uses : docker/build-push-action@v5
137
+ with :
138
+ target : vmlinux-debug
139
+ provenance : false
140
+ platforms : |
141
+ linux/amd64
142
+ ${{ inputs.build_arm64 && 'linux/arm64' || '' }}
143
+ build-args : |
144
+ KERNEL_VERSION=${{ inputs.kernel_version }}
145
+ tags : ${{ steps.debug-meta.outputs.tags }}
146
+ labels : ${{ steps.debug-meta.outputs.labels }}
147
+ annotations : ${{ steps.debug-meta.outputs.annotations }}
148
+ outputs : ${{ github.ref == 'refs/heads/main' && 'type=registry' || 'type=local,dest=/tmp/build/vmlinux-debug' }}
149
+
104
150
- name : Build selftests
105
151
if : inputs.build_selftests
106
152
uses : docker/build-push-action@v5
@@ -116,9 +162,24 @@ jobs:
116
162
annotations : ${{ steps.selftests-meta.outputs.annotations }}
117
163
outputs : ${{ github.ref == 'refs/heads/main' && 'type=registry' || 'type=local,dest=/tmp/build/selftests-bpf' }}
118
164
165
+ - name : Build selftests (debug)
166
+ if : inputs.build_selftests
167
+ uses : docker/build-push-action@v5
168
+ with :
169
+ target : selftests-bpf-debug
170
+ provenance : false
171
+ platforms : |
172
+ linux/amd64
173
+ build-args : |
174
+ KERNEL_VERSION=${{ inputs.kernel_version }}
175
+ tags : ${{ steps.selftests-debug-meta.outputs.tags }}
176
+ labels : ${{ steps.selftests-debug-meta.outputs.labels }}
177
+ annotations : ${{ steps.selftests-debug-meta.outputs.annotations }}
178
+ outputs : ${{ github.ref == 'refs/heads/main' && 'type=registry' || 'type=local,dest=/tmp/build/selftests-bpf-debug' }}
179
+
119
180
- name : Store artifacts
120
181
if : github.ref != 'refs/heads/main'
121
- uses : actions/upload-artifact@v3
182
+ uses : actions/upload-artifact@v4
122
183
with :
123
184
name : Artifacts (${{ inputs.kernel_version }})
124
185
if-no-files-found : error
0 commit comments