Skip to content

Commit 9c7d3a6

Browse files
dwsuseigaw
authored andcommitted
build: Add build action back
The test meson target builds only the necessary files for passing the test target. To build the complete library use the build target. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 629b045 commit 9c7d3a6

1 file changed

Lines changed: 76 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 76 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,21 @@ jobs:
2121
with:
2222
python-version: '3.x'
2323
- uses: BSFishy/[email protected]
24+
name: build
2425
with:
25-
action: test
26+
action: build
2627
setup-options: >
2728
--werror
2829
--buildtype=debug
2930
--wrap-mode=nofallback
3031
meson-version: 0.61.2
32+
- uses: BSFishy/[email protected]
33+
name: test
34+
with:
35+
action: test
36+
meson-version: 0.61.2
3137
- uses: actions/upload-artifact@v3
38+
name: upload logs
3239
if: failure()
3340
with:
3441
name: logs files
@@ -46,15 +53,22 @@ jobs:
4653
with:
4754
python-version: '3.x'
4855
- uses: BSFishy/[email protected]
56+
name: build
4957
with:
50-
action: test
58+
action: build
5159
setup-options: >
5260
--werror
5361
--buildtype=release
5462
--wrap-mode=nofallback
5563
-Dlibdbus=enabled
5664
meson-version: 0.61.2
65+
- uses: BSFishy/[email protected]
66+
name: test
67+
with:
68+
action: test
69+
meson-version: 0.61.2
5770
- uses: actions/upload-artifact@v3
71+
name: upload logs
5872
if: failure()
5973
with:
6074
name: log files
@@ -72,16 +86,23 @@ jobs:
7286
with:
7387
python-version: '3.x'
7488
- uses: BSFishy/[email protected]
89+
name: build
7590
with:
76-
action: test
91+
action: build
7792
setup-options: >
7893
--werror
7994
--buildtype=release
8095
--wrap-mode=nofallback
8196
--cross-file=.github/cross/clang.txt
8297
-Dlibdbus=enabled
8398
meson-version: 0.61.2
99+
- uses: BSFishy/[email protected]
100+
name: test
101+
with:
102+
action: test
103+
meson-version: 0.61.2
84104
- uses: actions/upload-artifact@v3
105+
name: upload logs
85106
if: failure()
86107
with:
87108
name: log files
@@ -99,8 +120,9 @@ jobs:
99120
with:
100121
python-version: '3.x'
101122
- uses: BSFishy/[email protected]
123+
name: build
102124
with:
103-
action: test
125+
action: build
104126
setup-options: >
105127
--werror
106128
--buildtype=release
@@ -109,6 +131,11 @@ jobs:
109131
-Ddbus:werror=false
110132
-Dopenssl:werror=false
111133
meson-version: 0.61.2
134+
- uses: BSFishy/[email protected]
135+
name: test
136+
with:
137+
action: test
138+
meson-version: 0.61.2
112139
- uses: actions/upload-artifact@v3
113140
if: failure()
114141
with:
@@ -127,8 +154,9 @@ jobs:
127154
with:
128155
python-version: '3.x'
129156
- uses: BSFishy/[email protected]
157+
name: build
130158
with:
131-
action: test
159+
action: build
132160
setup-options: >
133161
--werror
134162
--buildtype=release
@@ -138,7 +166,13 @@ jobs:
138166
-Ddbus:werror=false
139167
-Dopenssl:werror=false
140168
meson-version: 0.61.2
169+
- uses: BSFishy/[email protected]
170+
name: test
171+
with:
172+
action: test
173+
meson-version: 0.61.2
141174
- uses: actions/upload-artifact@v3
175+
name: upload logs
142176
if: failure()
143177
with:
144178
name: log files
@@ -156,8 +190,9 @@ jobs:
156190
with:
157191
python-version: '3.x'
158192
- uses: BSFishy/[email protected]
193+
name: build
159194
with:
160-
action: test
195+
action: build
161196
setup-options: >
162197
--werror
163198
--buildtype=release
@@ -168,7 +203,13 @@ jobs:
168203
-Ddbus:werror=false
169204
-Dopenssl:werror=false
170205
meson-version: 0.61.2
206+
- uses: BSFishy/[email protected]
207+
name: test
208+
with:
209+
action: test
210+
meson-version: 0.61.2
171211
- uses: actions/upload-artifact@v3
212+
name: upload logs
172213
if: failure()
173214
with:
174215
name: log files
@@ -195,16 +236,23 @@ jobs:
195236
run: sudo apt install libjson-c-dev:armhf
196237
- uses: actions/checkout@v3
197238
- uses: BSFishy/[email protected]
239+
name: build
198240
with:
199-
action: test
241+
action: build
200242
setup-options: >
201243
--werror
202244
--buildtype=release
203245
--wrap-mode=nofallback
204246
--cross-file=.github/cross/ubuntu-armhf.txt
205247
-Dpython=false
206248
meson-version: 0.61.2
249+
- uses: BSFishy/[email protected]
250+
name: test
251+
with:
252+
action: test
253+
meson-version: 0.61.2
207254
- uses: actions/upload-artifact@v3
255+
name: upload logs
208256
if: failure()
209257
with:
210258
name: log files
@@ -231,16 +279,23 @@ jobs:
231279
run: sudo apt install libjson-c-dev:ppc64el
232280
- uses: actions/checkout@v3
233281
- uses: BSFishy/[email protected]
282+
name: build
234283
with:
235-
action: test
284+
action: build
236285
setup-options: >
237286
--werror
238287
--buildtype=release
239288
--wrap-mode=nofallback
240289
--cross-file=.github/cross/ubuntu-ppc64le.txt
241290
-Dpython=false
242291
meson-version: 0.61.2
292+
- uses: BSFishy/[email protected]
293+
name: test
294+
with:
295+
action: test
296+
meson-version: 0.61.2
243297
- uses: actions/upload-artifact@v3
298+
name: upload logs
244299
if: failure()
245300
with:
246301
name: log files
@@ -267,16 +322,23 @@ jobs:
267322
run: sudo apt install libjson-c-dev:s390x
268323
- uses: actions/checkout@v3
269324
- uses: BSFishy/[email protected]
325+
name: build
270326
with:
271-
action: test
327+
action: build
272328
setup-options: >
273329
--werror
274330
--buildtype=release
275331
--wrap-mode=nofallback
276332
--cross-file=.github/cross/ubuntu-s390x.txt
277333
-Dpython=false
278334
meson-version: 0.61.2
335+
- uses: BSFishy/[email protected]
336+
name: test
337+
with:
338+
action: test
339+
meson-version: 0.61.2
279340
- uses: actions/upload-artifact@v3
341+
name: upload logs
280342
if: failure()
281343
with:
282344
name: log files
@@ -309,7 +371,7 @@ jobs:
309371
build
310372
build/samu -C build
311373
build/muon -C build test
312-
- name: build libnvme
374+
- name: build
313375
run: |
314376
export PATH=$(pwd)/build-tools/muon/build:$PATH
315377
@@ -320,4 +382,8 @@ jobs:
320382
-Djson-c=disabled \
321383
build
322384
samu -C build
385+
- name: test
386+
run: |
387+
export PATH=$(pwd)/build-tools/muon/build:$PATH
388+
323389
muon -C build test

0 commit comments

Comments
 (0)