Skip to content

Commit 55157a5

Browse files
authored
Deploy linux arm64 release to github (#1643)
1 parent 85ca0b2 commit 55157a5

File tree

2 files changed

+51
-20
lines changed

2 files changed

+51
-20
lines changed

.github/workflows/ci.yml

+50-19
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
working-directory: sass-spec
9292

9393
- name: Build JS
94-
run: dart pub run grinder pkg-npm-dev
94+
run: dart run grinder pkg-npm-dev
9595

9696
- name: Check out Sass specification
9797
uses: sass/clone-linked-repo@v1
@@ -119,9 +119,9 @@ jobs:
119119
- uses: dart-lang/setup-dart@v1
120120
with: {sdk: "${{ matrix.dart_channel }}"}
121121
- run: dart pub get
122-
- run: dart pub run grinder pkg-standalone-dev
122+
- run: dart run grinder pkg-standalone-dev
123123
- name: Run tests
124-
run: dart pub run test -p vm -x node -r expanded
124+
run: dart run test -p vm -x node -r expanded
125125

126126
# Unit tests that use Node.js, defined in test/.
127127
#
@@ -159,9 +159,9 @@ jobs:
159159
- uses: actions/setup-node@v2
160160
with: {node-version: "${{ matrix.node_version }}"}
161161
- run: npm install
162-
- run: dart pub run grinder before-test
162+
- run: dart run grinder before-test
163163
- name: Run tests
164-
run: dart pub run test -j 2 -t node -r expanded
164+
run: dart run test -j 2 -t node -r expanded
165165

166166
static_analysis:
167167
name: Static analysis
@@ -208,7 +208,7 @@ jobs:
208208
- uses: dart-lang/setup-dart@v1
209209
- run: dart pub get
210210
- name: Run checks
211-
run: dart pub run grinder double-check-before-release
211+
run: dart run grinder double-check-before-release
212212

213213
bootstrap:
214214
name: "Bootstrap ${{ matrix.bootstrap_version }}"
@@ -224,7 +224,7 @@ jobs:
224224
- uses: actions/checkout@v2
225225
- uses: dart-lang/setup-dart@v1
226226
- run: dart pub get
227-
- run: dart pub run grinder fetch-bootstrap${{matrix.bootstrap_version}}
227+
- run: dart run grinder fetch-bootstrap${{matrix.bootstrap_version}}
228228
env: {GITHUB_BEARER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"}
229229
- name: Build
230230
run: dart bin/sass.dart --quiet build/bootstrap/scss:build/bootstrap-output
@@ -238,7 +238,7 @@ jobs:
238238
- uses: actions/checkout@v2
239239
- uses: dart-lang/setup-dart@v1
240240
- run: dart pub get
241-
- run: dart pub run grinder fetch-bourbon
241+
- run: dart run grinder fetch-bourbon
242242
env: {GITHUB_BEARER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"}
243243
- name: Test
244244
run: |
@@ -254,7 +254,7 @@ jobs:
254254
- uses: actions/checkout@v2
255255
- uses: dart-lang/setup-dart@v1
256256
- run: dart pub get
257-
- run: dart pub run grinder fetch-foundation
257+
- run: dart run grinder fetch-foundation
258258
env: {GITHUB_BEARER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"}
259259
# TODO(nweiz): Foundation has proper Sass tests, but they're currently not
260260
# compatible with Dart Sass. Once they are, we should run those rather
@@ -271,7 +271,7 @@ jobs:
271271
- uses: actions/checkout@v2
272272
- uses: dart-lang/setup-dart@v1
273273
- run: dart pub get
274-
- run: dart pub run grinder fetch-bulma
274+
- run: dart run grinder fetch-bulma
275275
env: {GITHUB_BEARER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"}
276276
- name: Build
277277
run: dart bin/sass.dart --quiet build/bulma/bulma.sass build/bulma-output.css
@@ -287,7 +287,38 @@ jobs:
287287
- uses: dart-lang/setup-dart@v1
288288
- run: dart pub get
289289
- name: Deploy
290-
run: dart pub run grinder pkg-github-release pkg-github-linux
290+
run: dart run grinder pkg-github-release pkg-github-linux-ia32 pkg-github-linux-x64
291+
env:
292+
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
293+
GH_USER: sassbot
294+
295+
deploy_github_linux_qemu:
296+
name: "Deploy Github: Linux"
297+
runs-on: ubuntu-latest
298+
strategy:
299+
matrix:
300+
include:
301+
# https://github.com/dart-lang/sdk/pull/48665
302+
# - arch: arm
303+
# platform: linux/arm/v7
304+
- arch: arm64
305+
platform: linux/arm64
306+
needs: [deploy_github_linux]
307+
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
308+
309+
steps:
310+
- uses: actions/checkout@v2
311+
- uses: docker/setup-qemu-action@v1
312+
- name: Deploy
313+
run: |
314+
docker run --rm \
315+
--env "GH_TOKEN=$GH_TOKEN" \
316+
--env "GH_USER=$GH_USER" \
317+
--platform ${{ matrix.platform }} \
318+
--volume "$PWD:$PWD" \
319+
--workdir "$PWD" \
320+
docker.io/library/dart:latest \
321+
/bin/sh -c "dart pub get && dart run grinder pkg-github-linux-${{ matrix.arch }}"
291322
env:
292323
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
293324
GH_USER: sassbot
@@ -303,7 +334,7 @@ jobs:
303334
- uses: dart-lang/setup-dart@v1
304335
- run: dart pub get
305336
- name: Deploy
306-
run: dart pub run grinder pkg-github-macos
337+
run: dart run grinder pkg-github-macos
307338
env:
308339
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
309340
GH_USER: sassbot
@@ -319,7 +350,7 @@ jobs:
319350
- uses: dart-lang/setup-dart@v1
320351
- run: dart pub get
321352
- name: Deploy
322-
run: dart pub run grinder pkg-github-windows
353+
run: dart run grinder pkg-github-windows
323354
env:
324355
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
325356
GH_USER: sassbot
@@ -337,7 +368,7 @@ jobs:
337368
- uses: actions/setup-node@v2
338369
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
339370
- name: Deploy
340-
run: dart pub run grinder pkg-npm-deploy
371+
run: dart run grinder pkg-npm-deploy
341372
env:
342373
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
343374

@@ -354,7 +385,7 @@ jobs:
354385
- uses: actions/setup-node@v2
355386
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
356387
- name: Deploy
357-
run: dart pub run grinder update-bazel
388+
run: dart run grinder update-bazel
358389
env:
359390
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
360391
GH_USER: sassbot
@@ -372,7 +403,7 @@ jobs:
372403
- uses: actions/setup-node@v2
373404
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
374405
- name: Deploy
375-
run: dart pub run grinder pkg-pub-deploy
406+
run: dart run grinder pkg-pub-deploy
376407
env: {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}
377408

378409
deploy_sub_packages:
@@ -386,7 +417,7 @@ jobs:
386417
- uses: dart-lang/setup-dart@v1
387418
- run: dart pub get
388419
- name: Deploy
389-
run: dart pub run grinder deploy-sub-packages
420+
run: dart run grinder deploy-sub-packages
390421
env:
391422
PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"
392423
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
@@ -403,7 +434,7 @@ jobs:
403434
- uses: dart-lang/setup-dart@v1
404435
- run: dart pub get
405436
- name: Deploy
406-
run: dart pub run grinder pkg-homebrew-update
437+
run: dart run grinder pkg-homebrew-update
407438
env:
408439
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
409440
GH_USER: sassbot
@@ -419,7 +450,7 @@ jobs:
419450
- uses: dart-lang/setup-dart@v1
420451
- run: dart pub get
421452
- name: Deploy
422-
run: dart pub run grinder pkg-chocolatey-deploy
453+
run: dart run grinder pkg-chocolatey-deploy
423454
env: {CHOCOLATEY_TOKEN: "${{ secrets.CHOCOLATEY_TOKEN }}"}
424455

425456
deploy_website:

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies:
3434
dev_dependencies:
3535
analyzer: ^2.4.0
3636
archive: ^3.1.2
37-
cli_pkg: ^2.0.0
37+
cli_pkg: ^2.1.0
3838
crypto: ^3.0.0
3939
dart_style: ^2.0.0
4040
grinder: ^0.9.0

0 commit comments

Comments
 (0)