You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,23 @@ The `dotnet-version` input supports following syntax:
59
59
- **A.B.Cxx** (e.g. 8.0.4xx) - available since `.NET 5.0` release. Installs the latest version of the specific SDK release, including prerelease versions (preview, rc).
60
60
61
61
62
+
## Using the `architecture` input
63
+
Using the architecture input, it is possible to specify the required .NET SDK architecture. Possible values: `x64`, `x86`, `arm64`, `amd64`, `arm`, `s390x`, `ppc64le`, `riscv64`. If the input is not specified, the architecture defaults to the host OS architecture (not all of the architectures are available on all platforms).
64
+
65
+
**Example: Install multiple SDK versions for a specific architecture**
66
+
```yml
67
+
steps:
68
+
- uses: actions/checkout@v6
69
+
- name: Setup dotnet (x86)
70
+
uses: actions/setup-dotnet@v5
71
+
with:
72
+
dotnet-version: |
73
+
8.0.x
74
+
9.0.x
75
+
architecture: x86
76
+
- run: dotnet build <my project>
77
+
```
78
+
62
79
## Using the `dotnet-quality` input
63
80
This input sets up the action to install the latest build of the specified quality in the channel. The possible values of `dotnet-quality` are: **daily**, **signed**, **validated**, **preview**, **ga**.
it('should fail the action if unsupported architecture is provided',async()=>{
250
+
inputs['dotnet-version']=['10.0.101'];
251
+
inputs['dotnet-quality']='';
252
+
inputs['architecture']='x688';
253
+
254
+
constexpectedErrorMessage=`Value 'x688' is not supported for the 'architecture' option. Supported values are: x64, x86, arm64, amd64, arm, s390x, ppc64le, riscv64.`;
Copy file name to clipboardExpand all lines: action.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,9 @@ inputs:
27
27
workloads:
28
28
description: 'Optional SDK workloads to install for additional platform support. Examples: wasm-tools, maui, aspire.'
29
29
required: false
30
+
architecture:
31
+
description: 'Optional architecture for the .NET install. Supported values: x64, x86, arm64, amd64, arm, s390x, ppc64le, riscv64. If not set, the installer auto-detects the current system architecture.'
32
+
required: false
30
33
outputs:
31
34
cache-hit:
32
35
description: 'A boolean value to indicate if a cache was hit.'
0 commit comments