Skip to content

Commit b3780dc

Browse files
authored
Revert "Consistent with the configuration in the packaged cmake" (#26767)
Reverts #26104 It seems like this fix although is correct and necessary, it needs some patches in some other places (like release pipelines and onnxruntime inference examples). We will try and address the actual issue the PR was addressing in a subsequent release. I will re-open all the GH issues that the fix PR closed out so that the actual issue is still tracked. Will reopen: #24003 #26186 #23642 #25279 #25242
1 parent 84e657a commit b3780dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/ci_build/github/linux/copy_strip_binary.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ EXIT_CODE=1
1818
uname -a
1919
cd "$BINARY_DIR"
2020
mv installed/usr/local $ARTIFACT_NAME
21+
mv $ARTIFACT_NAME/include/onnxruntime/* $ARTIFACT_NAME/include
22+
rmdir $ARTIFACT_NAME/include/onnxruntime
2123
# Do not ship onnx_test_runner
2224
rm -rf $ARTIFACT_NAME/bin
2325
echo "Copy debug symbols in a separate file and strip the original binary."
@@ -27,6 +29,9 @@ then
2729
strip -S $BINARY_DIR/$ARTIFACT_NAME/lib/$LIB_NAME
2830
# copy the CoreML EP header for macOS build (libs with .dylib ext)
2931
cp $SOURCE_DIR/include/onnxruntime/core/providers/coreml/coreml_provider_factory.h $BINARY_DIR/$ARTIFACT_NAME/include
32+
else
33+
# Linux
34+
mv $ARTIFACT_NAME/lib64 $ARTIFACT_NAME/lib
3035
fi
3136

3237
# copy the README, licence and TPN

0 commit comments

Comments
 (0)