Commit 01c5e2d 1 parent 2846693 commit 01c5e2d Copy full SHA for 01c5e2d
File tree 2 files changed +26
-4
lines changed
2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,19 @@ RUN apt-get update && apt-get install -qq -y --no-install-recommends curl bash b
28
28
COPY ci/base-images/nuget /usr/lib/nuget
29
29
RUN mv /usr/lib/nuget/nuget.exe /usr/lib/nuget/NuGet.exe \
30
30
&& 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 \
33
44
&& nuget help
34
45
CMD ["/bin/bash"]
35
46
Original file line number Diff line number Diff line change @@ -28,7 +28,18 @@ RUN apt-get update && apt-get install -qq -y --no-install-recommends curl bash b
28
28
COPY ci/base-images/nuget /usr/lib/nuget
29
29
RUN mv /usr/lib/nuget/nuget.exe /usr/lib/nuget/NuGet.exe \
30
30
&& 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 \
33
44
&& nuget help
34
45
CMD ["/bin/bash"]
You can’t perform that action at this time.
0 commit comments