Skip to content

Commit

Permalink
Remove test things, they break CI apparently !?
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed Jul 22, 2024
1 parent 685bf87 commit 150be67
Showing 1 changed file with 1 addition and 191 deletions.
192 changes: 1 addition & 191 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,26 +123,6 @@ jobs:
name: ez80-lto2${{env.EXE}}-${{matrix.runs-on}}${{matrix.build-type}}
path: ez80-lto2${{env.EXE}}

- name: Configure Test
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 -DLLVM_TOOL_LLVM_AS_FUZZER_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_CFI_VERIFY_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_CVTRES_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_DWP_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_EXEGESIS_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_GSYMUTIL_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_IFS_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_ISEL_FUZZER_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_ITANIUM_DEMANGLE_FUZZER_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_JITLINK_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_JITLISTENER_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_LIPO_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_LTO2_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_LTO_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_MCA_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_MC_ASSEMBLE_FUZZER_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_MC_DISASSEMBLE_FUZZER_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_MICROSOFT_DEMANGLE_FUZZER_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_MT_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_OPT_FUZZER_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_PDBUTIL_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_PROFDATA_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_RC_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_SPECIAL_CASE_LIST_FUZZER_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_UNDNAME_BUILD:BOOL=ON -DLLVM_TOOL_LLVM_XRAY_BUILD:BOOL=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
- name: Build Test
run: cmake --build build --config ${{matrix.build-type}} --target Z80Tests
- name: Install Test
run: |
cmake -E make_directory test/bin test/test/Unit test/tools/clang/bin test/tools/clang/test/Unit test/unittests/Target/Z80
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
cmake -E copy build/test/lit.site.cfg.py test/test
cmake -E copy build/test/Unit/lit.site.cfg.py test/test/Unit
cmake -E copy build/tools/clang/bin/gen_ast_dump_json_test.py test/tools/clang/bin
cmake -E copy build/tools/clang/test/lit.site.cfg.py test/tools/clang/test
cmake -E copy build/tools/clang/test/Unit/lit.site.cfg.py test/tools/clang/test/Unit
cmake -E copy build/unittests/Target/Z80/Z80Tests${{env.EXE}} test/unittests/Target/Z80
- name: Upload Test
uses: actions/upload-artifact@v3
with:
name: Test${{matrix.runs-on}}${{matrix.build-type}}
path: test

- name: Disk Usage
if: always() && runner.os != 'Windows'
run: df -h
Expand Down Expand Up @@ -255,186 +235,16 @@ jobs:
name: ez80-clang${{env.EXE}}-${{matrix.runs-on}}${{matrix.build-type}}
path: ez80-clang${{env.EXE}}

- name: Download Test
uses: actions/download-artifact@v3
with:
name: Test${{matrix.runs-on}}${{matrix.build-type}}
path: test
- name: Install Test
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
- name: Upload Test
uses: actions/upload-artifact@v3
with:
name: Test${{matrix.runs-on}}${{matrix.build-type}}
path: test

- name: Disk Usage
if: always() && runner.os != 'Windows'
run: df -h
- name: Disk Usage
if: always() && runner.os == 'Windows'
run: wmic logicaldisk get size,freespace,caption

test-llvm-z80:
needs: [build-llvm]
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest]
build-type: [Release]
runs-on: ${{matrix.runs-on}}
steps:
- name: Uninstall Unused Packages
if: runner.os == 'Linux'
run: sudo apt-get remove azure-cli libgl1-mesa-dri ^google-chrome.*$ ^dotnet-sdk-[0-9.]+$ firefox

- name: Bootstrap Build Environment
if: runner.os == 'Windows'
run: "cmake -E echo >> $env:GITHUB_ENV ENV=env:"
- name: Prepare Build Environment
if: runner.os == 'Windows'
run: |
cmake -E echo >> $${{env.ENV}}GITHUB_ENV EXE=.exe
cmake -E echo >> $${{env.ENV}}GITHUB_ENV PY=.py
- name: Checkout Project
uses: actions/checkout@v4
with:
path: src
- name: Sparse Checkout
working-directory: src
run: |
git version
git sparse-checkout init --cone
git sparse-checkout set cmake llvm/test llvm/utils/lit/lit llvm/unittest third-party
- name: Download Test
uses: actions/download-artifact@v3
with:
name: Test${{matrix.runs-on}}${{matrix.build-type}}
path: build
- name: Download LLVM
uses: actions/download-artifact@v3
with:
name: LLVM${{matrix.runs-on}}${{matrix.build-type}}
path: build
- name: Set Executable
if: runner.os != 'Windows'
run: chmod +x build/bin/* build/unittests/Target/Z80/Z80Tests${{env.EXE}}

- name: Unittest LLVM Z80
run: build/unittests/Target/Z80/Z80Tests${{env.EXE}}
- name: Test LLVM Z80
run: build/bin/llvm-lit${{env.PY}} -v src/llvm/test/CodeGen/Z80

test-llvm:
needs: [build-llvm]
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest]
build-type: [Debug]
continue-on-error: true
if: false
runs-on: ${{matrix.runs-on}}
steps:
- name: Uninstall Unused Packages
if: runner.os == 'Linux'
run: sudo apt-get remove azure-cli libgl1-mesa-dri ^google-chrome.*$ ^dotnet-sdk-[0-9.]+$ firefox

- name: Bootstrap Build Environment
if: runner.os == 'Windows'
run: "cmake -E echo >> $env:GITHUB_ENV ENV=env:"
- name: Prepare Build Environment
if: runner.os == 'Windows'
run: cmake -E echo >> $${{env.ENV}}GITHUB_ENV PY=.py

- name: Checkout Project
uses: actions/checkout@v4
with:
path: src
- name: Sparse Checkout
working-directory: src
run: |
git version
git sparse-checkout init --cone
git sparse-checkout set cmake third-party llvm/test llvm/utils/lit/lit
- name: Download Test
uses: actions/download-artifact@v3
with:
name: Test${{matrix.runs-on}}${{matrix.build-type}}
path: build
- name: Download LLVM
uses: actions/download-artifact@v3
with:
name: LLVM${{matrix.runs-on}}${{matrix.build-type}}
path: build
- name: Set Executable
if: runner.os != 'Windows'
run: chmod +x build/bin/*

- name: Test LLVM
run: build/bin/llvm-lit${{env.PY}} -v src/llvm/test

test-clang:
needs: [build-llvm, build-clang]
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest]
build-type: [Debug]
continue-on-error: true
if: false
runs-on: ${{matrix.runs-on}}
steps:
- name: Uninstall Unused Packages
if: runner.os == 'Linux'
run: sudo apt-get remove azure-cli libgl1-mesa-dri ^google-chrome.*$ ^dotnet-sdk-[0-9.]+$ firefox

- name: Bootstrap Build Environment
if: runner.os == 'Windows'
run: "cmake -E echo >> $env:GITHUB_ENV ENV=env:"
- name: Prepare Build Environment
if: runner.os == 'Windows'
run: cmake -E echo >> $${{env.ENV}}GITHUB_ENV PY=.py

- name: Checkout Project
uses: actions/checkout@v4
with:
path: src
- name: Sparse Checkout
working-directory: src
run: |
git version
git sparse-checkout init --cone
git sparse-checkout set cmake third-party clang/test llvm/utils/lit/lit
- name: Download Test
uses: actions/download-artifact@v3
with:
name: Test${{matrix.runs-on}}${{matrix.build-type}}
path: build
- name: Download LLVM
uses: actions/download-artifact@v3
with:
name: LLVM${{matrix.runs-on}}${{matrix.build-type}}
path: build
- name: Download Clang
uses: actions/download-artifact@v3
with:
name: Clang${{matrix.runs-on}}${{matrix.build-type}}
path: build
- name: Set Executable
if: runner.os != 'Windows'
run: chmod +x build/bin/*

- name: Test Clang
run: build/bin/llvm-lit${{env.PY}} -v src/clang/test

nightly:
runs-on: ubuntu-latest
needs: [build-clang, test-clang, test-llvm, test-llvm-z80]
needs: [build-clang]
if: github.ref == 'refs/heads/z80'

steps:
Expand Down

0 comments on commit 150be67

Please sign in to comment.