mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-15 20:50:42 +00:00
* replace log sinks * limit headers to include dir * first changes to do dynamic linking * wip for using cxx api * remove weird dangling dependency * building with tests failing * finish updating converters * fix const * intital introduction of typedef * change logging to use spdlog * get tests passing * clang format * map logging levels better * clean up unused imports * trent cr comments * clang-format * code review comments * changing buffer use to reserve * Dynamically link * revert tvm * update binary uploading * catch exceptions by const-ref * Revert "revert tvm" This reverts commit 387676dd1018134d15eb71fa126f7caf94380800. * fix typo * update versioning of lib
34 lines
No EOL
1 KiB
Bash
Executable file
34 lines
No EOL
1 KiB
Bash
Executable file
#!/bin/bash
|
|
set -e -o -x
|
|
|
|
while getopts a:r:i:c:p:b: parameter_Option
|
|
do case "${parameter_Option}"
|
|
in
|
|
a) AZCOPY_DIR=${OPTARG};;
|
|
r) BINARY_DIR=${OPTARG};;
|
|
i) BUILD_ID=${OPTARG};;
|
|
c) LAST_COMMIT_ID=${OPTARG};;
|
|
p) BUILD_PARAMETERS=${OPTARG};;
|
|
b) BLOB_SAS_URL=${OPTARG};;
|
|
esac
|
|
done
|
|
|
|
echo ""
|
|
echo "ad=$AZCOPY_DIR bd=$BINARY_DIR bi=$BUILD_ID lci=$LAST_COMMIT_ID bc=$BUILD_PARAMETERS bsu=$BLOB_SAS_URL"
|
|
|
|
echo ""
|
|
echo "Creating temp folder $BINARY_DIR/$BUILD_ID ... "
|
|
mkdir $BINARY_DIR/$BUILD_ID
|
|
cp $BINARY_DIR/onnxruntime_server $BINARY_DIR/$BUILD_ID
|
|
cp $BINARY_DIR/onnxruntime_server.symbol $BINARY_DIR/$BUILD_ID
|
|
cp $BINARY_DIR/libonnxruntime.so.* $BINARY_DIR/$BUILD_ID
|
|
cp $BINARY_DIR/libonnxruntime.so.*.symbol $BINARY_DIR/$BUILD_ID
|
|
|
|
echo "Create build info file ..."
|
|
echo "Build parameters: $BUILD_PARAMETERS" >> $BINARY_DIR/$BUILD_ID/build_info.txt
|
|
echo "Last commit id: $LAST_COMMIT_ID" >> $BINARY_DIR/$BUILD_ID/build_info.txt
|
|
|
|
echo "Upload the folder to blob storage ..."
|
|
$AZCOPY_DIR/azcopy cp $BINARY_DIR/$BUILD_ID $BLOB_SAS_URL --recursive=true
|
|
|
|
echo "Done!" |