File tree Expand file tree Collapse file tree 1 file changed +33
-5
lines changed Expand file tree Collapse file tree 1 file changed +33
-5
lines changed Original file line number Diff line number Diff line change 1
- # @ actions/ setup-dotnet
1
+ # setup-dotnet
2
2
3
- This action sets by Dotnet environment for use in actions by:
3
+ This action sets up a dotnet environment for use in actions by:
4
4
5
- - optionally downloading and caching a version of Dotnet
6
- - registering problem matchers for error output
7
- - TODO: configuring proxy if the runner is configured to use a proxy (coming with private runners)
5
+ - optionally downloading and caching a version of dotnet by version and adding to PATH
6
+ - registering problem matchers for error output
7
+
8
+ # Usage
9
+
10
+ See [ action.yml] ( action.yml )
11
+
12
+ Basic:
13
+ ``` yaml
14
+ actions :
15
+ - uses : actions/setup-dotnet@latest
16
+ with :
17
+ version : 2.2.103 // Version to use.
18
+ - run : dotnet build <my project>
19
+ ` ` `
20
+
21
+ Matrix Testing:
22
+ ` ` ` yaml
23
+ jobs :
24
+ build :
25
+ strategy :
26
+ matrix :
27
+ dotnet : [ 2.2.103, 3.5.2, 4.5.1 ]
28
+ name : Dotnet ${{ matrix.dotnet }} sample
29
+ actions :
30
+ - name : Setup dotnet
31
+ uses : actions/setup-dotnet@latest
32
+ with :
33
+ version : ${{ matrix.dotnet }}
34
+ - run : dotnet build <my project>
35
+ ` ` `
8
36
9
37
# License
10
38
You can’t perform that action at this time.
0 commit comments