Remove the simplifier's ability to preserve dead letstmts #9776
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Halide Presubmit Checks | |
| on: | |
| # We don't want 'edited' (that's basically just the description, title, etc.) | |
| # We don't want 'review_requested' (that's redundant to the ones below for our purposes) | |
| pull_request: | |
| types: [ opened, synchronize, reopened ] | |
| paths: | |
| - '**.h' | |
| - '**.c' | |
| - '**.cpp' | |
| - '**CMakeLists.txt' | |
| - '**.cmake' | |
| - 'run-clang-tidy.sh' | |
| - 'run-clang-format.sh' | |
| - '.github/workflows/presubmit.yml' | |
| - '**.clang-tidy' | |
| permissions: | |
| contents: read | |
| jobs: | |
| check_clang_format: | |
| name: Check clang-format and ruff | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install clang-format | |
| run: brew install llvm@21 | |
| - name: Check clang-format | |
| run: ./run-clang-format.sh -c | |
| env: | |
| CLANG_FORMAT_LLVM_INSTALL_DIR: /opt/homebrew/opt/llvm@21 | |
| - uses: astral-sh/ruff-action@v3 | |
| check_clang_tidy: | |
| name: Check clang-tidy | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install clang-tidy | |
| run: brew install llvm@21 ninja lld@21 | |
| - name: Run clang-tidy | |
| run: ./run-clang-tidy.sh | |
| env: | |
| CLANG_TIDY_LLVM_INSTALL_DIR: /opt/homebrew/opt/llvm@21 | |
| check_cmake_file_lists: | |
| name: Check CMake file lists | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run test sources check | |
| run: | | |
| shopt -s nullglob | |
| (cd test/autoschedulers/adams2019 && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/autoschedulers/anderson2021 && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/autoschedulers/li2018 && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/autoschedulers/mullapudi2016 && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/correctness && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/error && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/failing_with_issue && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/fuzz && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/generator && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/performance && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/runtime && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) | |
| (cd test/warning && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ]) |