From 61afd971faead32b9f159a083509914dd0f9d258 Mon Sep 17 00:00:00 2001 From: Eshed Shaham Date: Mon, 18 Dec 2023 11:35:21 +0100 Subject: [PATCH] LT_CI: initial commit. Exclude protobuf from the framework. --- .github/workflows/LT_CI.yml | 21 +++++++++++++++++++++ cmake/onnxruntime.cmake | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/LT_CI.yml diff --git a/.github/workflows/LT_CI.yml b/.github/workflows/LT_CI.yml new file mode 100644 index 0000000000000..10f9e37c1635e --- /dev/null +++ b/.github/workflows/LT_CI.yml @@ -0,0 +1,21 @@ +name: Build Onnxruntime binaries +on: [push, pull_request, workflow_dispatch] + +jobs: + build-ios: + runs-on: macos-12 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Build Full + run: python3 ./tools/ci_build/github/apple/build_ios_framework.py tools/ci_build/github/apple/default_full_ios_framework_build_settings.json + - uses: actions/upload-artifact@v2 + with: + name: ios_binaries + path: build/ios_framework/framework_out + - uses: actions/upload-artifact@v2 + with: + name: ios_build_data + path: build/ios_framework/intermediates diff --git a/cmake/onnxruntime.cmake b/cmake/onnxruntime.cmake index 59ebf8eca4306..53ff46e1ff1e8 100644 --- a/cmake/onnxruntime.cmake +++ b/cmake/onnxruntime.cmake @@ -242,6 +242,8 @@ target_link_libraries(onnxruntime PRIVATE ${onnxruntime_EXTERNAL_LIBRARIES} ) +list(REMOVE_ITEM onnxruntime_EXTERNAL_LIBRARIES ${PROTOBUF_LIB}) + set_property(TARGET onnxruntime APPEND_STRING PROPERTY LINK_FLAGS ${ONNXRUNTIME_SO_LINK_FLAG} ${onnxruntime_DELAYLOAD_FLAGS}) set_target_properties(onnxruntime PROPERTIES PUBLIC_HEADER "${ONNXRUNTIME_PUBLIC_HEADERS}"