From 602f1310af93ce5c1f235063cae159d9b5300930 Mon Sep 17 00:00:00 2001 From: jathu Date: Fri, 23 May 2025 16:29:30 -0700 Subject: [PATCH] =?UTF-8?q?wip=20=E2=88=AB=20MAY=2023=202025=2016:29:30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-presets.yml | 2 +- CMakePresets.json | 14 ++++++++++++++ tools/cmake/preset/linux.cmake | 10 ++++++++++ tools/cmake/preset/macos.cmake | 1 + 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 tools/cmake/preset/linux.cmake diff --git a/.github/workflows/build-presets.yml b/.github/workflows/build-presets.yml index 1cf1f165ca9..e7fea10be8f 100644 --- a/.github/workflows/build-presets.yml +++ b/.github/workflows/build-presets.yml @@ -39,7 +39,7 @@ jobs: strategy: fail-fast: false matrix: - preset: [pybind, llm] + preset: [linux, pybind, llm] runner: [linux.2xlarge, linux.arm64.2xlarge] docker-image: [executorch-ubuntu-22.04-clang12, executorch-ubuntu-22.04-gcc11-aarch64] # Excluding specific runner + docker image combinations that don't make sense: diff --git a/CMakePresets.json b/CMakePresets.json index 85452d18822..315084f59ae 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -57,6 +57,20 @@ "rhs": "Darwin" } }, + { + "name": "linux", + "displayName": "Build everything buildable on Linux", + "inherits": ["common"], + "cacheVariables": { + "CMAKE_SYSTEM_NAME": "Linux", + "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/linux.cmake" + }, + "condition": { + "lhs": "${hostSystemName}", + "type": "equals", + "rhs": "Linux" + } + }, { "name": "pybind", "displayName": "Build pybindings exported in the wheel", diff --git a/tools/cmake/preset/linux.cmake b/tools/cmake/preset/linux.cmake new file mode 100644 index 00000000000..e4fcdc8cfb4 --- /dev/null +++ b/tools/cmake/preset/linux.cmake @@ -0,0 +1,10 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. + +include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/pybind.cmake) +include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/llm.cmake) + +set_overridable_option(EXECUTORCH_BUILD_EXECUTOR_RUNNER ON) diff --git a/tools/cmake/preset/macos.cmake b/tools/cmake/preset/macos.cmake index fc7a5872d9a..41e4fc3d86c 100644 --- a/tools/cmake/preset/macos.cmake +++ b/tools/cmake/preset/macos.cmake @@ -6,5 +6,6 @@ include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/apple_common.cmake) include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/pybind.cmake) +include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/llm.cmake) set_overridable_option(EXECUTORCH_BUILD_EXECUTOR_RUNNER ON)