4848 with :
4949 path : run
5050 key : run-${{ runner.os }}-${{ hashFiles('./build/**') }}
51+ -
52+ name : Install .NET SDK 6.0.x
53+ uses : actions/setup-dotnet@v1
54+ with :
55+ dotnet-version : ' 6.0.x'
56+ include-prerelease : true
5157 -
5258 name : ' [Prepare]'
5359 if : steps.cache-cake.outputs.cache-hit != 'true'
8389 with :
8490 path : tools
8591 key : tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
92+ -
93+ name : Install .NET SDK 6.0.x
94+ uses : actions/setup-dotnet@v1
95+ with :
96+ dotnet-version : ' 6.0.x'
97+ include-prerelease : true
8698 -
8799 name : ' [Build]'
88100 shell : pwsh
@@ -110,7 +122,7 @@ jobs:
110122 strategy :
111123 matrix :
112124 os : [windows-latest, ubuntu-latest, macos-latest]
113- targetFramework : [net5.0, netcoreapp3.1]
125+ targetFramework : [net5.0, net6.0, netcoreapp3.1]
114126 fail-fast : false
115127
116128 steps :
@@ -134,6 +146,12 @@ jobs:
134146 with :
135147 path : tools
136148 key : tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
149+ -
150+ name : Install .NET SDK 6.0.x
151+ uses : actions/setup-dotnet@v1
152+ with :
153+ dotnet-version : ' 6.0.x'
154+ include-prerelease : true
137155 -
138156 name : ' [Build]'
139157 shell : pwsh
@@ -175,6 +193,12 @@ jobs:
175193 with :
176194 name : nuget
177195 path : ${{ github.workspace }}/artifacts/packages/nuget
196+ -
197+ name : Install .NET SDK 6.0.x
198+ uses : actions/setup-dotnet@v1
199+ with :
200+ dotnet-version : ' 6.0.x'
201+ include-prerelease : true
178202 -
179203 name : ' [Test Artifacts]'
180204 shell : pwsh
@@ -186,8 +210,8 @@ jobs:
186210 runs-on : ubuntu-latest
187211 strategy :
188212 matrix :
189- targetFramework : [ '3.1', '5.0' ]
190- distro : [ alpine.3.12-x64, centos.7-x64 , centos.8-x64 , debian.9-x64 , debian.10-x64, fedora.33-x64, ubuntu.16.04-x64 , ubuntu.18.04-x64 , ubuntu.20.04-x64 ]
213+ targetFramework : [ '3.1', '5.0', '6.0' ]
214+ distro : [ alpine.3.12, alpine.3.13, alpine.3.14, centos.7, centos.8, debian.9, debian.10, debian.11, fedora.33 , ubuntu.18.04, ubuntu.20.04 ]
191215 fail-fast : false
192216
193217 steps :
@@ -224,18 +248,36 @@ jobs:
224248 name : native-${{ runner.os }}
225249 path : ${{ github.workspace }}/artifacts/packages/native
226250 -
227- name : ' [Test Artifacts]'
251+ name : Setup QEMU
252+ uses : docker/setup-qemu-action@v1
253+ -
254+ name : Set up Docker Buildx
255+ uses : docker/setup-buildx-action@v1
256+ with :
257+ install : true
258+ -
259+ name : Install .NET SDK 6.0.x
260+ uses : actions/setup-dotnet@v1
261+ with :
262+ dotnet-version : ' 6.0.x'
263+ include-prerelease : true
264+ -
265+ name : ' [Test Artifacts (amd64)]'
228266 shell : pwsh
229- run : dotnet run/artifacts.dll --target=ArtifactsTest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }}
267+ run : dotnet run/artifacts.dll --target=ArtifactsTest --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --verbosity=diagnostic
268+ -
269+ name : ' [Test Artifacts (arm64)]'
270+ shell : pwsh
271+ run : dotnet run/artifacts.dll --target=ArtifactsTest --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }}
230272
231273 docker_linux_images :
232274 name : Build, Test and Publish Docker Images
233275 needs : [build]
234276 runs-on : ubuntu-latest
235277 strategy :
236278 matrix :
237- targetFramework : [ '3.1', '5.0' ]
238- distro : [ alpine.3.12-x64, centos.7-x64 , centos.8-x64 , debian.9-x64 , debian.10-x64, fedora.33-x64, ubuntu.16.04-x64 , ubuntu.18.04-x64 , ubuntu.20.04-x64 ]
279+ targetFramework : [ '3.1', '5.0', '6.0' ]
280+ distro : [ alpine.3.12, alpine.3.13, alpine.3.14, centos.7, centos.8, debian.9, debian.10, debian.11, fedora.33 , ubuntu.18.04, ubuntu.20.04 ]
239281 fail-fast : false
240282
241283 steps :
@@ -266,17 +308,19 @@ jobs:
266308 name : nuget
267309 path : ${{ github.workspace }}/artifacts/packages/nuget
268310 -
269- name : Set up QEMU
311+ name : Setup QEMU
270312 uses : docker/setup-qemu-action@v1
271313 -
272314 name : Set up Docker Buildx
273315 uses : docker/setup-buildx-action@v1
274316 with :
275317 install : true
276318 -
277- name : ' [Docker Build/Test] DockerHub'
278- shell : pwsh
279- run : dotnet run/docker.dll --target=DockerTest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
319+ name : Install .NET SDK 6.0.x
320+ uses : actions/setup-dotnet@v1
321+ with :
322+ dotnet-version : ' 6.0.x'
323+ include-prerelease : true
280324 -
281325 name : Login to DockerHub
282326 if : success() && github.event_name != 'pull_request'
@@ -285,28 +329,44 @@ jobs:
285329 username : ${{ secrets.DOCKER_USERNAME }}
286330 password : ${{ secrets.DOCKER_PASSWORD }}
287331 -
288- name : ' [Docker Publish] DockerHub'
332+ name : ' [Docker Build/Test/ Publish (amd64) ] DockerHub'
289333 if : success() && github.event_name != 'pull_request'
290334 shell : pwsh
291- run : dotnet run/docker.dll --target=DockerPublish --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
335+ run : dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
336+ -
337+ name : ' [Docker Build/Test/Publish (arm64)] DockerHub'
338+ if : success() && github.event_name != 'pull_request'
339+ shell : pwsh
340+ run : dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
341+ -
342+ name : ' [Docker Publish Manifest] DockerHub'
343+ if : success() && github.event_name != 'pull_request'
344+ shell : pwsh
345+ run : dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
292346
293- # -
294- # name: '[Docker Build/Test] GitHub Container Registry'
295- # shell: pwsh
296- # run: dotnet run/docker.dll --target=DockerTest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
297- # -
298- # name: Login to GitHub Container Registry
299- # if: success() && github.event_name != 'pull_request'
300- # uses: docker/login-action@v1
301- # with:
302- # registry: ghcr.io
303- # username: ${{ github.repository_owner }}
304- # password: ${{ secrets.GITHUB_TOKEN }}
305- # -
306- # name: '[Docker Publish] GitHub Container Registry'
307- # if: success() && github.event_name != 'pull_request'
308- # shell: pwsh
309- # run: dotnet run/docker.dll --target=DockerPublish --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
347+ -
348+ name : Login to GitHub Container Registry
349+ if : success() && github.event_name != 'pull_request'
350+ uses : docker/login-action@v1
351+ with :
352+ registry : ghcr.io
353+ username : ${{ github.repository_owner }}
354+ password : ${{ secrets.DOCKER_GITHUB_TOKEN }}
355+ -
356+ name : ' [Docker Build/Test/Publish (amd64)] GitHub Container Registry'
357+ if : success() && github.event_name != 'pull_request'
358+ shell : pwsh
359+ run : dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
360+ -
361+ name : ' [Docker Build/Test/Publish (arm64)] GitHub Container Registry'
362+ if : success() && github.event_name != 'pull_request'
363+ shell : pwsh
364+ run : dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
365+ -
366+ name : ' [Docker Publish Manifest] GitHub Container Registry'
367+ if : success() && github.event_name != 'pull_request'
368+ shell : pwsh
369+ run : dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
310370
311371 publish :
312372 name : Publish
@@ -347,6 +407,12 @@ jobs:
347407 with :
348408 name : nuget
349409 path : ${{ github.workspace }}/artifacts/packages/nuget
410+ -
411+ name : Install .NET SDK 6.0.x
412+ uses : actions/setup-dotnet@v1
413+ with :
414+ dotnet-version : ' 6.0.x'
415+ include-prerelease : true
350416 -
351417 name : ' [Publish]'
352418 shell : pwsh
@@ -397,6 +463,12 @@ jobs:
397463 with :
398464 name : native-macOS
399465 path : ${{ github.workspace }}/artifacts/packages/native
466+ -
467+ name : Install .NET SDK 6.0.x
468+ uses : actions/setup-dotnet@v1
469+ with :
470+ dotnet-version : ' 6.0.x'
471+ include-prerelease : true
400472 -
401473 name : ' [Release]'
402474 shell : pwsh
0 commit comments