Skip to content

Commit

Permalink
LT_CI: initial commit.
Browse files Browse the repository at this point in the history
Exclude protobuf from the framework.
  • Loading branch information
ashdnazg committed Dec 18, 2023
1 parent 2ac381c commit 61afd97
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/LT_CI.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions cmake/onnxruntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 61afd97

Please sign in to comment.