mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-28 22:56:32 +00:00
Install dotnet sdk on linux ci (#320)
* Try install dotnet sdk on linux ci * Fix install script * Add configurable os version in docker build script * Avoid use ARG in docker
This commit is contained in:
parent
677918cd9a
commit
0efc48a11a
1 changed files with 9 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ esac
|
|||
done
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
apt-get update && apt-get install -y software-properties-common
|
||||
add-apt-repository ppa:deadsnakes/ppa
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
|
|
@ -42,6 +43,14 @@ apt-get update && apt-get install -y --no-install-recommends \
|
|||
locale-gen en_US.UTF-8
|
||||
update-locale LANG=en_US.UTF-8
|
||||
|
||||
OS_VER=`lsb_release -r -s`
|
||||
mkdir -p /tmp/dotnet
|
||||
aria2c -q -d /tmp/dotnet https://packages.microsoft.com/config/ubuntu/${OS_VER}/packages-microsoft-prod.deb
|
||||
dpkg -i /tmp/dotnet/packages-microsoft-prod.deb
|
||||
apt-get update && apt-get install -y apt-transport-https \
|
||||
dotnet-sdk-2.2
|
||||
rm -rf /tmp/dotnet || true
|
||||
|
||||
if [ $PYTHON_VER != "3.5" ]; then
|
||||
apt-get install -y --no-install-recommends \
|
||||
python${PYTHON_VER} \
|
||||
|
|
|
|||
Loading…
Reference in a new issue