|
40 | 40 | - uses: actions/setup-dotnet@v1 |
41 | 41 | with: |
42 | 42 | dotnet-version: '5.0.100-rc.1.20452.10' |
43 | | - - name: Move .net SDK's to shared folder (hack) |
44 | | - shell: pwsh |
45 | | - run: | |
46 | | - $version = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Leaf; |
47 | | - $root = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Parent; |
48 | | - $directories = Get-ChildItem $root | Where-Object { $_.Name -ne $version }; |
49 | | - foreach ($dir in $directories) { |
50 | | - $from = $dir.FullName; |
51 | | - $to = "$root/$version"; |
52 | | - Write-Host Copying from $from to $to; |
53 | | - Copy-Item "$from\*" $to -Recurse -Force; |
54 | | - } |
55 | 43 |
|
56 | 44 | - name: Building library in release mode |
57 | 45 | run: dotnet build -c Release -p:ContinuousIntegrationBuild=true |
|
71 | 59 | - uses: actions/setup-dotnet@v1 |
72 | 60 | with: |
73 | 61 | dotnet-version: '5.0.100-rc.1.20452.10' |
74 | | - - name: Move .net SDK's to shared folder (hack) |
75 | | - shell: pwsh |
76 | | - run: | |
77 | | - $version = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Leaf; |
78 | | - $root = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Parent; |
79 | | - $directories = Get-ChildItem $root | Where-Object { $_.Name -ne $version }; |
80 | | - foreach ($dir in $directories) { |
81 | | - $from = $dir.FullName; |
82 | | - $to = "$root/$version"; |
83 | | - Write-Host Copying from $from to $to; |
84 | | - Copy-Item "$from\*" $to -Recurse -Force; |
85 | | - } |
86 | 62 |
|
87 | 63 | - name: Running unit tests |
88 | 64 | run: | |
@@ -124,18 +100,6 @@ jobs: |
124 | 100 | - uses: actions/setup-dotnet@v1 |
125 | 101 | with: |
126 | 102 | dotnet-version: '5.0.100-rc.1.20452.10' |
127 | | - - name: Move .net SDK's to shared folder (hack) |
128 | | - shell: pwsh |
129 | | - run: | |
130 | | - $version = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Leaf; |
131 | | - $root = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Parent; |
132 | | - $directories = Get-ChildItem $root | Where-Object { $_.Name -ne $version }; |
133 | | - foreach ($dir in $directories) { |
134 | | - $from = $dir.FullName; |
135 | | - $to = "$root/$version"; |
136 | | - Write-Host Copying from $from to $to; |
137 | | - Copy-Item "$from\*" $to -Recurse -Force; |
138 | | - } |
139 | 103 |
|
140 | 104 | - name: Creating library package |
141 | 105 | run: | |
@@ -169,18 +133,6 @@ jobs: |
169 | 133 | - uses: actions/setup-dotnet@v1 |
170 | 134 | with: |
171 | 135 | dotnet-version: '5.0.100-rc.1.20452.10' |
172 | | - - name: Move .net SDK's to shared folder (hack) |
173 | | - shell: pwsh |
174 | | - run: | |
175 | | - $version = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Leaf; |
176 | | - $root = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Parent; |
177 | | - $directories = Get-ChildItem $root | Where-Object { $_.Name -ne $version }; |
178 | | - foreach ($dir in $directories) { |
179 | | - $from = $dir.FullName; |
180 | | - $to = "$root/$version"; |
181 | | - Write-Host Copying from $from to $to; |
182 | | - Copy-Item "$from\*" $to -Recurse -Force; |
183 | | - } |
184 | 136 |
|
185 | 137 | - name: Install dotnet-format |
186 | 138 | run: dotnet tool install -g dotnet-format |
@@ -238,18 +190,6 @@ jobs: |
238 | 190 | - uses: actions/setup-dotnet@v1 |
239 | 191 | with: |
240 | 192 | dotnet-version: '5.0.100-rc.1.20452.10' |
241 | | - - name: Move .net SDK's to shared folder (hack) |
242 | | - shell: pwsh |
243 | | - run: | |
244 | | - $version = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Leaf; |
245 | | - $root = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Parent; |
246 | | - $directories = Get-ChildItem $root | Where-Object { $_.Name -ne $version }; |
247 | | - foreach ($dir in $directories) { |
248 | | - $from = $dir.FullName; |
249 | | - $to = "$root/$version"; |
250 | | - Write-Host Copying from $from to $to; |
251 | | - Copy-Item "$from\*" $to -Recurse -Force; |
252 | | - } |
253 | 193 |
|
254 | 194 | - name: Initialize CodeQL |
255 | 195 | uses: github/codeql-action/init@v1 |
@@ -296,18 +236,6 @@ jobs: |
296 | 236 | - uses: actions/setup-dotnet@v1 |
297 | 237 | with: |
298 | 238 | dotnet-version: '5.0.100-rc.1.20452.10' |
299 | | - - name: DOTNET HACK |
300 | | - shell: pwsh |
301 | | - run: | |
302 | | - $version = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Leaf; |
303 | | - $root = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Parent; |
304 | | - $directories = Get-ChildItem $root | Where-Object { $_.Name -ne $version }; |
305 | | - foreach ($dir in $directories) { |
306 | | - $from = $dir.FullName; |
307 | | - $to = "$root/$version"; |
308 | | - Write-Host Copying from $from to $to; |
309 | | - Copy-Item "$from\*" $to -Recurse -Force; |
310 | | - } |
311 | 239 |
|
312 | 240 | - name: Creating library package for pre-release |
313 | 241 | if: github.event_name != 'release' |
|
0 commit comments