1111 strategy :
1212 fail-fast : false
1313 matrix :
14- runs-on : [ubuntu -latest]
14+ runs-on : [windows -latest]
1515 build-type : [Release]
1616 runs-on : ${{matrix.runs-on}}
1717 steps :
@@ -176,7 +176,7 @@ jobs:
176176 strategy :
177177 fail-fast : false
178178 matrix :
179- runs-on : [ubuntu -latest]
179+ runs-on : [windows -latest]
180180 build-type : [Release]
181181 runs-on : ${{matrix.runs-on}}
182182 steps :
@@ -316,18 +316,17 @@ jobs:
316316 if : runner.os == 'Windows'
317317 run : Get-CimInstance Win32_LogicalDisk | Select-Object Caption, FreeSpace, Size
318318
319- test-llvm-z80 :
319+ test-llvm-z80-windows-regen :
320320 needs : [build-llvm]
321321 strategy :
322322 fail-fast : false
323323 matrix :
324- runs-on : [ubuntu -latest]
324+ runs-on : [windows -latest]
325325 build-type : [Release]
326326 runs-on : ${{matrix.runs-on}}
327327 steps :
328- - name : Uninstall Unused Packages (Linux)
329- if : runner.os == 'Linux'
330- run : sudo apt-get remove azure-cli libgl1-mesa-dri ^google-chrome.*$ ^dotnet-sdk-[0-9.]+$ firefox
328+ - name : Configure Git (Windows)
329+ run : git config --global core.autocrlf false
331330
332331 - name : Checkout Project
333332 uses : actions/checkout@v4
@@ -338,44 +337,35 @@ jobs:
338337 run : |
339338 git version
340339 git sparse-checkout init --cone
341- git sparse-checkout set cmake llvm/test llvm/utils/UpdateTestChecks llvm/utils/lit/lit llvm/unittest third-party
340+ git sparse-checkout set llvm/test llvm/utils/UpdateTestChecks
342341
343- - name : Download Test
344- uses : actions/download-artifact@v4
345- with :
346- name : Test${{matrix.runs-on}}${{matrix.build-type}}
347- path : build
348342 - name : Download LLVM
349343 uses : actions/download-artifact@v4
350344 with :
351345 name : LLVM${{matrix.runs-on}}${{matrix.build-type}}
352346 path : build
353- - name : Set Executable
354- run : chmod +x build/bin/* build/unittests/Target/Z80/Z80Tests${{env.EXE}}
355-
356- - name : Unittest LLVM Z80
357- run : build/unittests/Target/Z80/Z80Tests${{env.EXE}}
358- - name : Test LLVM Z80
359- run : build/bin/llvm-lit${{env.PY}} -v src/llvm/test/CodeGen/Z80
360- - name : Regenerate Z80 .ll checks (Linux)
361- if : runner.os == 'Linux' && matrix.runs-on == 'ubuntu-latest' && always()
347+
348+ - name : Regenerate Z80 .ll checks (Windows)
349+ shell : bash
362350 working-directory : build
363- run : python3 ../src/llvm/utils/update_llc_test_checks.py --llc-binary ./bin/llc ../src/llvm/test/CodeGen/Z80/*.ll
364- - name : Show regenerated Z80 diffs (Linux)
365- if : runner.os == 'Linux' && matrix.runs-on == 'ubuntu-latest' && always()
351+ run : python ../src/llvm/utils/update_llc_test_checks.py --llc-binary ./bin/llc.exe ../src/llvm/test/CodeGen/Z80/*.ll
352+
353+ - name : Show regenerated Z80 diffs (Windows)
354+ shell : bash
366355 run : |
367356 if git -C src diff --quiet -- llvm/test/CodeGen/Z80; then
368357 echo "No regenerated Z80 test changes."
369358 else
370359 git -C src status --short -- llvm/test/CodeGen/Z80
371360 git -C src diff -- llvm/test/CodeGen/Z80
361+ exit 1
372362 fi
373363
374364 nightly :
375365 runs-on : ubuntu-latest
376- needs : [build-clang, test-llvm-z80]
366+ needs : [build-clang, test-llvm-z80-windows-regen ]
377367
378- if : github.ref == 'refs/heads/z80' && github.event_name != 'pull_request'
368+ if : false && github.ref == 'refs/heads/z80' && github.event_name != 'pull_request'
379369 steps :
380370 - name : Download Ubuntu 22.04 ez80-clang
381371 uses : actions/download-artifact@v4
0 commit comments