cmake(ci): fix dotnet build
This commit is contained in:
@@ -5,7 +5,7 @@ FROM ortools/cmake:almalinux_swig AS env
|
||||
RUN wget -q "https://dot.net/v1/dotnet-install.sh" \
|
||||
&& chmod a+x dotnet-install.sh \
|
||||
&& ./dotnet-install.sh -c 3.1 -i /usr/local/bin \
|
||||
&& ./dotnet-install.sh -c 6.0 -i /usr/local/bin
|
||||
&& ./dotnet-install.sh -c 8.0 -i /usr/local/bin
|
||||
# Trigger first run experience by running arbitrary cmd
|
||||
RUN dotnet --info
|
||||
|
||||
|
||||
@@ -5,12 +5,12 @@ RUN apk add --no-cache wget icu-libs libintl \
|
||||
&& mkdir -p /usr/share/dotnet \
|
||||
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
|
||||
|
||||
## .Net 6.0
|
||||
## see: https://dotnet.microsoft.com/download/dotnet-core/6.0
|
||||
RUN dotnet_sdk_version=6.0.405 \
|
||||
## .Net 8.0
|
||||
## see: https://dotnet.microsoft.com/download/dotnet-core/8.0
|
||||
RUN dotnet_sdk_version=8.0.408 \
|
||||
&& wget -qO dotnet.tar.gz \
|
||||
"https://dotnetcli.azureedge.net/dotnet/Sdk/$dotnet_sdk_version/dotnet-sdk-${dotnet_sdk_version}-linux-musl-x64.tar.gz" \
|
||||
&& dotnet_sha512='ca98ebc5858339c5ce4164f5f5932a5bf8aae9f13d54adf382a41f5e6d1302df278bd7e218ecc2f651dcf67e705c40c43347cd33956732c6bd88d3b3d2881b84' \
|
||||
&& dotnet_sha512='0ab0c0d52985bde69b594454b5e1d9e1a6e003159656ee2972058d2960cfb0968dbe4d470d8eb21dcea41ff594976520e189a8e13afc44a419ca08e456df36e1' \
|
||||
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
|
||||
&& tar -C /usr/share/dotnet -oxzf dotnet.tar.gz \
|
||||
&& rm dotnet.tar.gz
|
||||
|
||||
@@ -7,7 +7,7 @@ RUN apt-get update -qq \
|
||||
&& dpkg -i packages-microsoft-prod.deb \
|
||||
&& rm packages-microsoft-prod.deb \
|
||||
&& apt-get update -qq \
|
||||
&& apt-get install -yq dotnet-sdk-6.0 \
|
||||
&& apt-get install -yq dotnet-sdk-8.0 \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
# Trigger first run experience by running arbitrary cmd
|
||||
|
||||
@@ -5,11 +5,11 @@ FROM ortools/cmake:opensuse_swig AS env
|
||||
RUN zypper refresh \
|
||||
&& zypper install -y wget tar awk gzip libicu-devel
|
||||
|
||||
## .Net 6.0
|
||||
## .Net 8.0
|
||||
# see: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
|
||||
RUN wget -q "https://dot.net/v1/dotnet-install.sh" \
|
||||
&& chmod a+x dotnet-install.sh \
|
||||
&& ./dotnet-install.sh -c 6.0 -i /usr/local/bin
|
||||
&& ./dotnet-install.sh -c 8.0 -i /usr/local/bin
|
||||
# Trigger first run experience by running arbitrary cmd
|
||||
RUN dotnet --info
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ FROM ortools/cmake:rockylinux_swig AS env
|
||||
RUN wget -q "https://dot.net/v1/dotnet-install.sh" \
|
||||
&& chmod a+x dotnet-install.sh \
|
||||
&& ./dotnet-install.sh -c 3.1 -i /usr/local/bin \
|
||||
&& ./dotnet-install.sh -c 6.0 -i /usr/local/bin
|
||||
&& ./dotnet-install.sh -c 8.0 -i /usr/local/bin
|
||||
# Trigger first run experience by running arbitrary cmd
|
||||
RUN dotnet --info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user