@@ -277,7 +277,7 @@ jobs:
277277 run : dart bin/sass.dart --quiet build/bulma/bulma.sass build/bulma-output.css
278278
279279 deploy_github_linux :
280- name : " Deploy Github: Linux "
280+ name : " Deploy Github: linux-ia32, linux-x64 "
281281 runs-on : ubuntu-latest
282282 needs : [bootstrap, bourbon, foundation, bulma]
283283 if : " startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
@@ -293,7 +293,7 @@ jobs:
293293 GH_USER : sassbot
294294
295295 deploy_github_linux_qemu :
296- name : " Deploy Github: Linux "
296+ name : " Deploy Github: linux-${{ matrix.arch }} "
297297 runs-on : ubuntu-latest
298298 strategy :
299299 matrix :
@@ -325,34 +325,33 @@ jobs:
325325 GH_TOKEN : " ${{ secrets.GH_TOKEN }}"
326326 GH_USER : sassbot
327327
328- deploy_github_macos :
329- name : " Deploy Github: Mac OS"
330- runs-on : macos-latest
331- needs : [deploy_github_linux]
332- if : " startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
333-
334- steps :
335- - uses : actions/checkout@v2
336- - uses : dart-lang/setup-dart@v1
337- - run : dart pub get
338- - name : Deploy
339- run : dart run grinder pkg-github-macos
340- env :
341- GH_TOKEN : " ${{ secrets.GH_TOKEN }}"
342- GH_USER : sassbot
343-
344- deploy_github_windows :
345- name : " Deploy Github: Windows"
346- runs-on : windows-latest
328+ deploy_github :
329+ name : " Deploy Github: ${{ matrix.platform }}"
330+ runs-on : ${{ matrix.runner }}
347331 needs : [deploy_github_linux]
348332 if : " startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
333+ strategy :
334+ matrix :
335+ include :
336+ - runner : macos-latest
337+ platform : macos-x64
338+ architecture : x64
339+ - runner : self-hosted
340+ platform : macos-arm64
341+ architecture : arm64
342+ - runner : windows-latest
343+ platform : windows
344+ architecture : x64
349345
350346 steps :
351347 - uses : actions/checkout@v2
352348 - uses : dart-lang/setup-dart@v1
349+ # Workaround for dart-lang/setup-dart#59
350+ with :
351+ architecture : ${{ matrix.architecture }}
353352 - run : dart pub get
354353 - name : Deploy
355- run : dart run grinder pkg-github-windows
354+ run : dart run grinder pkg-github-${{ matrix.platform }}
356355 env :
357356 GH_TOKEN : " ${{ secrets.GH_TOKEN }}"
358357 GH_USER : sassbot
0 commit comments