Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,44 @@ permissions:
jobs:
check_clang_format:
name: Check clang-format and ruff
runs-on: macos-14
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- 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
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install clang-tidy
run: brew install llvm@21 ninja lld@21
- uses: actions/checkout@v6

- uses: actions/checkout@v6
with:
repository: microsoft/vcpkg
path: vcpkg
ref: 2026.01.16
fetch-depth: 0 # need all history for vcpkg's versioning mechanism to work

- name: Install dependencies
run: brew install lld@21 llvm@21

- name: Run clang-tidy
run: ./run-clang-tidy.sh
env:
CLANG_TIDY_LLVM_INSTALL_DIR: /opt/homebrew/opt/llvm@21
VCPKG_ROOT: ${{ github.workspace }}/vcpkg

check_cmake_file_lists:
name: Check CMake file lists
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Run test sources check
run: |
shopt -s nullglob
Expand Down
20 changes: 0 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
cmake_minimum_required(VERSION 3.28)

# TODO: remove this after updating build bots.
if (CMAKE_TOOLCHAIN_FILE MATCHES "vcpkg")
if (NOT DEFINED VCPKG_OVERLAY_PORTS)
set(VCPKG_OVERLAY_PORTS "${CMAKE_CURRENT_LIST_DIR}/cmake/vcpkg")
endif ()

if (NOT DEFINED VCPKG_MANIFEST_FEATURES)
set(VCPKG_MANIFEST_FEATURES developer)
endif ()

# vcpkg and FetchContent are incompatible
set(Halide_USE_FETCHCONTENT OFF)
endif ()

option(Halide_USE_FETCHCONTENT "When Halide is top-level, use FetchContent for build-time dependencies." ON)
if (Halide_USE_FETCHCONTENT)
list(APPEND CMAKE_PROJECT_TOP_LEVEL_INCLUDES "${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies.cmake")
endif ()

project(Halide
VERSION 22.0.0
DESCRIPTION "Halide compiler and libraries"
Expand Down
Loading
Loading