Skip to content

Commit 4de6ebe

Browse files
authored
Merge pull request #1758 from sass/macos-arm64
Use a self-hosted runner to release a native Mac OS ARM64 runner
2 parents 126f0a6 + 1a4ba52 commit 4de6ebe

File tree

5 files changed

+61
-54
lines changed

5 files changed

+61
-54
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
async_args: '--cmd-args --async'
3333

3434
steps:
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v3
3636
- uses: dart-lang/setup-dart@v1
3737
with: {sdk: "${{ matrix.dart_channel }}"}
3838
- run: dart pub get
3939
- name: Check out sass-spec
4040
uses: sass/clone-linked-repo@v1
4141
with: {repo: sass/sass-spec}
42-
- uses: actions/setup-node@v2
42+
- uses: actions/setup-node@v3
4343
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
4444
- run: npm install
4545
working-directory: sass-spec
@@ -74,11 +74,11 @@ jobs:
7474
node_version: 16
7575

7676
steps:
77-
- uses: actions/checkout@v2
77+
- uses: actions/checkout@v3
7878
- uses: dart-lang/setup-dart@v1
7979
with: {sdk: "${{ matrix.dart_channel }}"}
8080
- run: dart pub get
81-
- uses: actions/setup-node@v2
81+
- uses: actions/setup-node@v3
8282
with: {node-version: "${{ matrix.node_version }}"}
8383
- run: npm install
8484

@@ -115,7 +115,7 @@ jobs:
115115
include: [{os: ubuntu-latest, dart_channel: dev}]
116116

117117
steps:
118-
- uses: actions/checkout@v2
118+
- uses: actions/checkout@v3
119119
- uses: dart-lang/setup-dart@v1
120120
with: {sdk: "${{ matrix.dart_channel }}"}
121121
- run: dart pub get
@@ -152,11 +152,11 @@ jobs:
152152
node_version: 16
153153

154154
steps:
155-
- uses: actions/checkout@v2
155+
- uses: actions/checkout@v3
156156
- uses: dart-lang/setup-dart@v1
157157
with: {sdk: "${{ matrix.dart_channel }}"}
158158
- run: dart pub get
159-
- uses: actions/setup-node@v2
159+
- uses: actions/setup-node@v3
160160
with: {node-version: "${{ matrix.node_version }}"}
161161
- run: npm install
162162
- run: dart run grinder before-test
@@ -168,7 +168,7 @@ jobs:
168168
runs-on: ubuntu-latest
169169

170170
steps:
171-
- uses: actions/checkout@v2
171+
- uses: actions/checkout@v3
172172
- uses: dart-lang/setup-dart@v1
173173
- run: dart pub get
174174
- name: Analyze Dart
@@ -179,7 +179,7 @@ jobs:
179179
runs-on: ubuntu-latest
180180

181181
steps:
182-
- uses: actions/checkout@v2
182+
- uses: actions/checkout@v3
183183
- uses: dart-lang/setup-dart@v1
184184
- run: dart pub get
185185
- name: dartdoc sass
@@ -204,7 +204,7 @@ jobs:
204204
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
205205

206206
steps:
207-
- uses: actions/checkout@v2
207+
- uses: actions/checkout@v3
208208
- uses: dart-lang/setup-dart@v1
209209
- run: dart pub get
210210
- name: Run checks
@@ -221,7 +221,7 @@ jobs:
221221
bootstrap_version: [4, 5]
222222

223223
steps:
224-
- uses: actions/checkout@v2
224+
- uses: actions/checkout@v3
225225
- uses: dart-lang/setup-dart@v1
226226
- run: dart pub get
227227
- run: dart run grinder fetch-bootstrap${{matrix.bootstrap_version}}
@@ -235,7 +235,7 @@ jobs:
235235
needs: [double_check]
236236

237237
steps:
238-
- uses: actions/checkout@v2
238+
- uses: actions/checkout@v3
239239
- uses: dart-lang/setup-dart@v1
240240
- run: dart pub get
241241
- run: dart run grinder fetch-bourbon
@@ -251,7 +251,7 @@ jobs:
251251
needs: [double_check]
252252

253253
steps:
254-
- uses: actions/checkout@v2
254+
- uses: actions/checkout@v3
255255
- uses: dart-lang/setup-dart@v1
256256
- run: dart pub get
257257
- run: dart run grinder fetch-foundation
@@ -268,7 +268,7 @@ jobs:
268268
needs: [double_check]
269269

270270
steps:
271-
- uses: actions/checkout@v2
271+
- uses: actions/checkout@v3
272272
- uses: dart-lang/setup-dart@v1
273273
- run: dart pub get
274274
- run: dart run grinder fetch-bulma
@@ -277,13 +277,13 @@ 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'"
284284

285285
steps:
286-
- uses: actions/checkout@v2
286+
- uses: actions/checkout@v3
287287
- uses: dart-lang/setup-dart@v1
288288
- run: dart pub get
289289
- name: Deploy
@@ -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:
@@ -307,8 +307,8 @@ jobs:
307307
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
308308

309309
steps:
310-
- uses: actions/checkout@v2
311-
- uses: docker/setup-qemu-action@v1
310+
- uses: actions/checkout@v3
311+
- uses: docker/setup-qemu-action@v2
312312
- name: Deploy
313313
run: |
314314
docker run --rm \
@@ -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:
351-
- uses: actions/checkout@v2
347+
- uses: actions/checkout@v3
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
@@ -364,10 +363,10 @@ jobs:
364363
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
365364

366365
steps:
367-
- uses: actions/checkout@v2
366+
- uses: actions/checkout@v3
368367
- uses: dart-lang/setup-dart@v1
369368
- run: dart pub get
370-
- uses: actions/setup-node@v2
369+
- uses: actions/setup-node@v3
371370
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
372371
- name: Deploy
373372
run: dart run grinder pkg-npm-deploy
@@ -381,10 +380,10 @@ jobs:
381380
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
382381

383382
steps:
384-
- uses: actions/checkout@v2
383+
- uses: actions/checkout@v3
385384
- uses: dart-lang/setup-dart@v1
386385
- run: dart pub get
387-
- uses: actions/setup-node@v2
386+
- uses: actions/setup-node@v3
388387
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
389388
- name: Deploy
390389
run: dart run grinder update-bazel
@@ -399,10 +398,10 @@ jobs:
399398
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
400399

401400
steps:
402-
- uses: actions/checkout@v2
401+
- uses: actions/checkout@v3
403402
- uses: dart-lang/setup-dart@v1
404403
- run: dart pub get
405-
- uses: actions/setup-node@v2
404+
- uses: actions/setup-node@v3
406405
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
407406
- name: Deploy
408407
run: dart run grinder pkg-pub-deploy
@@ -415,7 +414,7 @@ jobs:
415414
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
416415

417416
steps:
418-
- uses: actions/checkout@v2
417+
- uses: actions/checkout@v3
419418
- uses: dart-lang/setup-dart@v1
420419
- run: dart pub get
421420
- name: Deploy
@@ -432,7 +431,7 @@ jobs:
432431
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
433432

434433
steps:
435-
- uses: actions/checkout@v2
434+
- uses: actions/checkout@v3
436435
- uses: dart-lang/setup-dart@v1
437436
- run: dart pub get
438437
- name: Deploy
@@ -448,7 +447,7 @@ jobs:
448447
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
449448

450449
steps:
451-
- uses: actions/checkout@v2
450+
- uses: actions/checkout@v3
452451
- uses: dart-lang/setup-dart@v1
453452
- run: dart pub get
454453
- name: Deploy
@@ -462,7 +461,7 @@ jobs:
462461
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
463462

464463
steps:
465-
- uses: actions/checkout@v2
464+
- uses: actions/checkout@v3
466465
with:
467466
repository: sass/sass-site
468467
token: ${{ secrets.GH_TOKEN }}
@@ -481,7 +480,7 @@ jobs:
481480
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
482481

483482
steps:
484-
- uses: actions/checkout@v2
483+
- uses: actions/checkout@v3
485484
with:
486485
repository: sass/dart-sass-embedded
487486
token: ${{ secrets.GH_TOKEN }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.54.3
2+
3+
* Release a native ARM64 executable for Mac OS.
4+
15
## 1.54.2
26

37
* No user-visible changes.

pkg/sass_api/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.3
2+
3+
* No user-visible changes.
4+
15
## 2.0.2
26

37
* No user-visible changes.

pkg/sass_api/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: sass_api
22
# Note: Every time we add a new Sass AST node, we need to bump the *major*
33
# version because it's a breaking change for anyone who's implementing the
44
# visitor interface(s).
5-
version: 2.0.2
5+
version: 2.0.3
66
description: Additional APIs for Dart Sass.
77
homepage: https://github.com/sass/dart-sass
88

99
environment:
1010
sdk: ">=2.12.0 <3.0.0"
1111

1212
dependencies:
13-
sass: 1.54.2
13+
sass: 1.54.3
1414

1515
dev_dependencies:
1616
dartdoc: ^5.0.0

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.54.2
2+
version: 1.54.3
33
description: A Sass implementation in Dart.
44
homepage: https://github.com/sass/dart-sass
55

0 commit comments

Comments
 (0)