onnxruntime/tools/ci_build/github/linux/upload_ortsrv_binaries.sh
Changming Sun 264a7405e5
Cherry-picks for 1.16.1 release (#17741)
Cherry-pick the following PRs to the release branch:

Fix: Fail to skip disabledmodel in winml (#17728) 
Move dotnet build and test into docker in Linux CPU CI (#17417) 
Run Nuget_Test_Linux_GPU in container (#17452) 
Run Final_Jar_Testing_Linux_GPU in docker (#17533) 
TreeEnsemble speed up (#17449) 
Remove onnxruntime extensions from list of gitmodules (#17615) 
Include onnxruntime_float16.h in the package. (#17637) 
Fix static quantization for QDQ and Percentile distribution (#17649) 
[TensorRT EP] Back out the PerThreadContext (#17690) 
Update nodejs to 18.x (#17657) 
Update linux-wasm-ci.yml: remove the ln command (#17735)
2023-10-02 15:04:56 -07:00

36 lines
No EOL
1.1 KiB
Bash
Executable file

#!/bin/bash
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
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!"