Skip to content

Commit 01c5e2d

Browse files
committed
Inclue more dotnet workload tools
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent 2846693 commit 01c5e2d

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

ci/base-images/debian/Dockerfile.dotnet8

+13-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,19 @@ RUN apt-get update && apt-get install -qq -y --no-install-recommends curl bash b
2828
COPY ci/base-images/nuget /usr/lib/nuget
2929
RUN mv /usr/lib/nuget/nuget.exe /usr/lib/nuget/NuGet.exe \
3030
&& dotnet --list-sdks \
31-
&& dotnet workload install android wasm-tools wasm-tools-net6 wasm-tools-net7 \
32-
&& dotnet workload list \
31+
&& set -e; \
32+
ARCH_NAME="$(dpkg --print-architecture)"; \
33+
url=; \
34+
case "${ARCH_NAME##*-}" in \
35+
'amd64') \
36+
dotnet workload install android wasm-tools wasm-tools-net6 wasm-tools-net7 \
37+
;; \
38+
'arm64') \
39+
dotnet workload install wasm-tools \
40+
;; \
41+
*) echo >&2 "error: unsupported architecture: '$ARCH_NAME'"; exit 1 ;; \
42+
esac; \
43+
dotnet workload list \
3344
&& nuget help
3445
CMD ["/bin/bash"]
3546

ci/base-images/debian/Dockerfile.dotnet9

+13-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,18 @@ RUN apt-get update && apt-get install -qq -y --no-install-recommends curl bash b
2828
COPY ci/base-images/nuget /usr/lib/nuget
2929
RUN mv /usr/lib/nuget/nuget.exe /usr/lib/nuget/NuGet.exe \
3030
&& dotnet --list-sdks \
31-
&& dotnet workload install android wasm-tools wasm-tools-net6 wasm-tools-net7 \
32-
&& dotnet workload list \
31+
&& set -e; \
32+
ARCH_NAME="$(dpkg --print-architecture)"; \
33+
url=; \
34+
case "${ARCH_NAME##*-}" in \
35+
'amd64') \
36+
dotnet workload install android wasm-tools wasm-tools-net6 wasm-tools-net7 \
37+
;; \
38+
'arm64') \
39+
dotnet workload install wasm-tools \
40+
;; \
41+
*) echo >&2 "error: unsupported architecture: '$ARCH_NAME'"; exit 1 ;; \
42+
esac; \
43+
dotnet workload list \
3344
&& nuget help
3445
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)