65
65
run : pip install ninja
66
66
67
67
- name : Checkout Project
68
- uses : actions/checkout@v2
68
+ uses : actions/checkout@v3.0.2
69
69
with :
70
70
path : src
71
71
- name : Sparse Checkout
85
85
cmake --build build --config ${{matrix.build-type}} --target install
86
86
cmake -E copy build/include/llvm/Config/config.h llvm/include/llvm/Config
87
87
- name : Upload LLVM
88
- uses : actions/upload-artifact@v2
88
+ uses : actions/upload-artifact@v3
89
89
with :
90
90
name : LLVM${{runner.os}}${{matrix.build-type}}
91
91
path : llvm
96
96
if : runner.os != 'Windows'
97
97
run : strip ez80-link${{env.EXE}}
98
98
- name : Upload ez80-link
99
- uses : actions/upload-artifact@v2
99
+ uses : actions/upload-artifact@v3
100
100
with :
101
101
name : ez80-link${{env.EXE}}-${{runner.os}}${{matrix.build-type}}
102
102
path : ez80-link${{env.EXE}}
@@ -107,7 +107,7 @@ jobs:
107
107
if : runner.os != 'Windows'
108
108
run : strip ez80-lto${{env.EXE}}
109
109
- name : Upload ez80-lto
110
- uses : actions/upload-artifact@v2
110
+ uses : actions/upload-artifact@v3
111
111
with :
112
112
name : ez80-lto${{env.EXE}}-${{runner.os}}${{matrix.build-type}}
113
113
path : ez80-lto${{env.EXE}}
@@ -118,24 +118,27 @@ jobs:
118
118
if : runner.os != 'Windows'
119
119
run : strip ez80-lto2${{env.EXE}}
120
120
- name : Upload ez80-lto2
121
- uses : actions/upload-artifact@v2
121
+ uses : actions/upload-artifact@v3
122
122
with :
123
123
name : ez80-lto2${{env.EXE}}-${{runner.os}}${{matrix.build-type}}
124
124
path : ez80-lto2${{env.EXE}}
125
125
126
126
- name : Configure Test
127
127
run: cmake build -DLLVM_LINK_LLVM_DYLIB:BOOL=${{env.DYLIB}} -DLLVM_ENABLE_PROJECTS:STRING=clang -DLLVM_INCLUDE_EXAMPLES:BOOL=OFF -DLLVM_INCLUDE_TESTS:BOOL=ON -DLLVM_TOOL_DSYMUTIL_BUILD:BOOL=ON -DLLVM_TOOL_GOLD_BUILD:BOOL=ON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ON -DLLVM_TOOL_LLVM_YAML_NUMERIC_PARSER_FUZZER_BUILD:BOOL=ON -DLLVM_TOOL_SANCOV_BUILD:BOOL=ON -DLLVM_TOOL_SANSTATS_BUILD:BOOL=ON -DLLVM_TOOL_VFABI_DEMANGLE_FUZZER_BUILD:BOOL=ON
128
+ - name : Build Test
129
+ run : cmake --build build --config ${{matrix.build-type}} --target Z80Tests
128
130
- name : Install Test
129
131
run : |
130
- cmake -E make_directory test/bin test/test/Unit test/tools/clang/bin test/tools/clang/test/Unit
132
+ cmake -E make_directory test/bin test/test/Unit test/tools/clang/bin test/tools/clang/test/Unit test/unittests/Target/Z80
131
133
cmake -E copy build/bin/not${{env.EXE}} build/bin/FileCheck${{env.EXE}} build/bin/llvm-PerfectShuffle${{env.EXE}} build/bin/lli-child-target${{env.EXE}} build/bin/llvm-lit${{env.PY}} build/bin/llvm-locstats build/bin/count${{env.EXE}} build/bin/yaml-bench${{env.EXE}} test/bin
132
134
cmake -E copy build/test/lit.site.cfg.py test/test
133
135
cmake -E copy build/test/Unit/lit.site.cfg.py test/test/Unit
134
136
cmake -E copy build/tools/clang/bin/gen_ast_dump_json_test.py test/tools/clang/bin
135
137
cmake -E copy build/tools/clang/test/lit.site.cfg.py test/tools/clang/test
136
138
cmake -E copy build/tools/clang/test/Unit/lit.site.cfg.py test/tools/clang/test/Unit
139
+ cmake -E copy build/unittests/Target/Z80/Z80Tests${{env.EXE}} test/unittests/Target/Z80
137
140
- name : Upload Test
138
- uses : actions/upload-artifact@v2
141
+ uses : actions/upload-artifact@v3
139
142
with :
140
143
name : Test${{runner.os}}${{matrix.build-type}}
141
144
path : test
@@ -206,7 +209,7 @@ jobs:
206
209
run : pip install ninja
207
210
208
211
- name : Checkout Project
209
- uses : actions/checkout@v2
212
+ uses : actions/checkout@v3.0.2
210
213
with :
211
214
path : src
212
215
- name : Sparse Checkout
@@ -217,7 +220,7 @@ jobs:
217
220
git sparse-checkout set cmake third-party clang
218
221
219
222
- name : Download LLVM
220
- uses : actions/download-artifact@v2
223
+ uses : actions/download-artifact@v3
221
224
with :
222
225
name : LLVM${{runner.os}}${{matrix.build-type}}
223
226
path : llvm
@@ -233,7 +236,7 @@ jobs:
233
236
- name : Install Clang
234
237
run : cmake --build build --config ${{matrix.build-type}} --target install
235
238
- name : Upload Clang
236
- uses : actions/upload-artifact@v2
239
+ uses : actions/upload-artifact@v3
237
240
with :
238
241
name : Clang${{runner.os}}${{matrix.build-type}}
239
242
path : clang
@@ -246,20 +249,20 @@ jobs:
246
249
- name : Test ez80-clang
247
250
run : cmake -E echo "void test(void){}" | ./ez80-clang${{env.EXE}} -S -xc - -o -
248
251
- name : Upload ez80-clang
249
- uses : actions/upload-artifact@v2
252
+ uses : actions/upload-artifact@v3
250
253
with :
251
254
name : ez80-clang${{env.EXE}}-${{runner.os}}${{matrix.build-type}}
252
255
path : ez80-clang${{env.EXE}}
253
256
254
257
- name : Download Test
255
- uses : actions/download-artifact@v2
258
+ uses : actions/download-artifact@v3
256
259
with :
257
260
name : Test${{runner.os}}${{matrix.build-type}}
258
261
path : test
259
262
- name : Install Test
260
263
run : cmake -E copy build/bin/arcmt-test${{env.EXE}} build/bin/c-arcmt-test${{env.EXE}} build/bin/clang-diff${{env.EXE}} build/bin/clang-tblgen${{env.EXE}} test/bin
261
264
- name : Upload Test
262
- uses : actions/upload-artifact@v2
265
+ uses : actions/upload-artifact@v3
263
266
with :
264
267
name : Test${{runner.os}}${{matrix.build-type}}
265
268
path : test
@@ -271,6 +274,58 @@ jobs:
271
274
if : always() && runner.os == 'Windows'
272
275
run : wmic logicaldisk get size,freespace,caption
273
276
277
+ test-llvm-z80 :
278
+ needs : [build-llvm]
279
+ strategy :
280
+ fail-fast : false
281
+ matrix :
282
+ runs-on : [ubuntu-latest, macos-latest, windows-latest]
283
+ build-type : [Release]
284
+ runs-on : ${{matrix.runs-on}}
285
+ steps :
286
+ - name : Uninstall Unused Packages
287
+ if : runner.os == 'Linux'
288
+ run : sudo apt-get remove azure-cli google-cloud-sdk ^adoptopenjdk-[0-9]+-hotspot$ hhvm libgl1-mesa-dri ^google-chrome.*$ ^dotnet-sdk-[0-9.]+$ firefox
289
+
290
+ - name : Bootstrap Build Environment
291
+ if : runner.os == 'Windows'
292
+ run : " cmake -E echo >> $env:GITHUB_ENV ENV=env:"
293
+ - name : Prepare Build Environment
294
+ if : runner.os == 'Windows'
295
+ run : |
296
+ cmake -E echo >> $${{env.ENV}}GITHUB_ENV EXE=.exe
297
+ cmake -E echo >> $${{env.ENV}}GITHUB_ENV PY=.py
298
+
299
+ - name : Checkout Project
300
+
301
+ with :
302
+ path : src
303
+ - name : Sparse Checkout
304
+ working-directory : src
305
+ run : |
306
+ git version
307
+ git sparse-checkout init --cone
308
+ git sparse-checkout set cmake llvm/test llvm/utils/lit/lit llvm/unittest third-party
309
+
310
+ - name : Download Test
311
+ uses : actions/download-artifact@v3
312
+ with :
313
+ name : Test${{runner.os}}${{matrix.build-type}}
314
+ path : build
315
+ - name : Download LLVM
316
+ uses : actions/download-artifact@v3
317
+ with :
318
+ name : LLVM${{runner.os}}${{matrix.build-type}}
319
+ path : build
320
+ - name : Set Executable
321
+ if : runner.os != 'Windows'
322
+ run : chmod +x build/bin/* build/unittests/Target/Z80/Z80Tests${{env.EXE}}
323
+
324
+ - name : Unittest LLVM Z80
325
+ run : build/unittests/Target/Z80/Z80Tests${{env.EXE}}
326
+ - name : Test LLVM Z80
327
+ run : build/bin/llvm-lit${{env.PY}} -v src/llvm/test/CodeGen/Z80
328
+
274
329
test-llvm :
275
330
needs : [build-llvm]
276
331
strategy :
@@ -286,8 +341,15 @@ jobs:
286
341
if : runner.os == 'Linux'
287
342
run : sudo apt-get remove azure-cli google-cloud-sdk ^adoptopenjdk-[0-9]+-hotspot$ hhvm libgl1-mesa-dri ^google-chrome.*$ ^dotnet-sdk-[0-9.]+$ firefox
288
343
344
+ - name : Bootstrap Build Environment
345
+ if : runner.os == 'Windows'
346
+ run : " cmake -E echo >> $env:GITHUB_ENV ENV=env:"
347
+ - name : Prepare Build Environment
348
+ if : runner.os == 'Windows'
349
+ run : cmake -E echo >> $${{env.ENV}}GITHUB_ENV PY=.py
350
+
289
351
- name : Checkout Project
290
- uses : actions/checkout@v2
352
+ uses : actions/checkout@v3.0.2
291
353
with :
292
354
path : src
293
355
- name : Sparse Checkout
@@ -298,12 +360,12 @@ jobs:
298
360
git sparse-checkout set cmake third-party llvm/test llvm/utils/lit/lit
299
361
300
362
- name : Download Test
301
- uses : actions/download-artifact@v2
363
+ uses : actions/download-artifact@v3
302
364
with :
303
365
name : Test${{runner.os}}${{matrix.build-type}}
304
366
path : build
305
367
- name : Download LLVM
306
- uses : actions/download-artifact@v2
368
+ uses : actions/download-artifact@v3
307
369
with :
308
370
name : LLVM${{runner.os}}${{matrix.build-type}}
309
371
path : build
@@ -312,7 +374,7 @@ jobs:
312
374
run : chmod +x build/bin/*
313
375
314
376
- name : Test LLVM
315
- run : build/bin/llvm-lit -v src/llvm/test
377
+ run : build/bin/llvm-lit${{env.PY}} -v src/llvm/test
316
378
317
379
test-clang :
318
380
needs : [build-llvm, build-clang]
@@ -329,8 +391,15 @@ jobs:
329
391
if : runner.os == 'Linux'
330
392
run : sudo apt-get remove azure-cli google-cloud-sdk ^adoptopenjdk-[0-9]+-hotspot$ hhvm libgl1-mesa-dri ^google-chrome.*$ ^dotnet-sdk-[0-9.]+$ firefox
331
393
394
+ - name : Bootstrap Build Environment
395
+ if : runner.os == 'Windows'
396
+ run : " cmake -E echo >> $env:GITHUB_ENV ENV=env:"
397
+ - name : Prepare Build Environment
398
+ if : runner.os == 'Windows'
399
+ run : cmake -E echo >> $${{env.ENV}}GITHUB_ENV PY=.py
400
+
332
401
- name : Checkout Project
333
- uses : actions/checkout@v2
402
+ uses : actions/checkout@v3.0.2
334
403
with :
335
404
path : src
336
405
- name : Sparse Checkout
@@ -341,17 +410,17 @@ jobs:
341
410
git sparse-checkout set cmake third-party clang/test llvm/utils/lit/lit
342
411
343
412
- name : Download Test
344
- uses : actions/download-artifact@v2
413
+ uses : actions/download-artifact@v3
345
414
with :
346
415
name : Test${{runner.os}}${{matrix.build-type}}
347
416
path : build
348
417
- name : Download LLVM
349
- uses : actions/download-artifact@v2
418
+ uses : actions/download-artifact@v3
350
419
with :
351
420
name : LLVM${{runner.os}}${{matrix.build-type}}
352
421
path : build
353
422
- name : Download Clang
354
- uses : actions/download-artifact@v2
423
+ uses : actions/download-artifact@v3
355
424
with :
356
425
name : Clang${{runner.os}}${{matrix.build-type}}
357
426
path : build
@@ -360,4 +429,4 @@ jobs:
360
429
run : chmod +x build/bin/*
361
430
362
431
- name : Test Clang
363
- run : build/bin/llvm-lit -v src/clang/test
432
+ run : build/bin/llvm-lit${{env.PY}} -v src/clang/test
0 commit comments