@@ -277,7 +277,7 @@ jobs:
277
277
run : dart bin/sass.dart --quiet build/bulma/bulma.sass build/bulma-output.css
278
278
279
279
deploy_github_linux :
280
- name : " Deploy Github: Linux "
280
+ name : " Deploy Github: linux-ia32, linux-x64 "
281
281
runs-on : ubuntu-latest
282
282
needs : [bootstrap, bourbon, foundation, bulma]
283
283
if : " startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
@@ -293,7 +293,7 @@ jobs:
293
293
GH_USER : sassbot
294
294
295
295
deploy_github_linux_qemu :
296
- name : " Deploy Github: Linux "
296
+ name : " Deploy Github: linux-${{ matrix.arch }} "
297
297
runs-on : ubuntu-latest
298
298
strategy :
299
299
matrix :
@@ -325,34 +325,33 @@ jobs:
325
325
GH_TOKEN : " ${{ secrets.GH_TOKEN }}"
326
326
GH_USER : sassbot
327
327
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 }}
347
331
needs : [deploy_github_linux]
348
332
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
349
345
350
346
steps :
351
347
- uses : actions/checkout@v2
352
348
- uses : dart-lang/setup-dart@v1
349
+ # Workaround for dart-lang/setup-dart#59
350
+ with :
351
+ architecture : ${{ matrix.architecture }}
353
352
- run : dart pub get
354
353
- name : Deploy
355
- run : dart run grinder pkg-github-windows
354
+ run : dart run grinder pkg-github-${{ matrix.platform }}
356
355
env :
357
356
GH_TOKEN : " ${{ secrets.GH_TOKEN }}"
358
357
GH_USER : sassbot
0 commit comments