Skip to content
This repository was archived by the owner on May 15, 2023. It is now read-only.

Commit 38451a4

Browse files
authored
Deploy linux arm64 release to github (#77)
1 parent 31d0eb6 commit 38451a4

File tree

3 files changed

+47
-14
lines changed

3 files changed

+47
-14
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ jobs:
5151
with: {repo: sass/embedded-protocol, path: build/embedded-protocol}
5252

5353
- run: dart pub get
54-
- run: dart pub run grinder protobuf
54+
- run: dart run grinder protobuf
5555
env: {UPDATE_SASS_PROTOCOL: false}
56-
- run: dart pub run grinder pkg-standalone-dev
56+
- run: dart run grinder pkg-standalone-dev
5757
- name: Run tests
58-
run: dart pub run test -r expanded
58+
run: dart run test -r expanded
5959

6060
static_analysis:
6161
name: Static analysis
@@ -90,7 +90,7 @@ jobs:
9090
with: {repo: sass/embedded-protocol, path: build/embedded-protocol}
9191

9292
- run: dart pub get
93-
- run: dart pub run grinder protobuf
93+
- run: dart run grinder protobuf
9494
env: {UPDATE_SASS_PROTOCOL: false}
9595
- name: Analyze dart
9696
run: dart analyze --fatal-warnings ./
@@ -117,9 +117,42 @@ jobs:
117117
with: { version: "${{ env.protoc_version }}", repo-token: "${{ github.token }}" }
118118
- uses: dart-lang/setup-dart@v1
119119
- run: dart pub get
120-
- run: dart pub run grinder protobuf
120+
- run: dart run grinder protobuf
121121
- name: Deploy
122-
run: dart pub run grinder pkg-github-release pkg-github-linux
122+
run: dart run grinder pkg-github-release pkg-github-linux-ia32 pkg-github-linux-x64
123+
env: {GH_BEARER_TOKEN: "${{ github.token }}"}
124+
125+
deploy_github_linux_qemu:
126+
name: "Deploy Github: Linux"
127+
runs-on: ubuntu-latest
128+
strategy:
129+
matrix:
130+
include:
131+
# https://github.com/dart-lang/sdk/pull/48665
132+
# - arch: arm
133+
# platform: linux/arm/v7
134+
- arch: arm64
135+
platform: linux/arm64
136+
needs: [deploy_github_linux]
137+
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass-embedded'"
138+
139+
steps:
140+
- uses: actions/checkout@v2
141+
- uses: arduino/setup-protoc@v1
142+
with: { version: "${{ env.protoc_version }}", repo-token: "${{ github.token }}" }
143+
- uses: dart-lang/setup-dart@v1
144+
- run: dart pub get
145+
- run: dart run grinder protobuf
146+
- uses: docker/setup-qemu-action@v1
147+
- name: Deploy
148+
run: |
149+
docker run --rm \
150+
--env "GH_BEARER_TOKEN=$GH_BEARER_TOKEN" \
151+
--platform ${{ matrix.platform }} \
152+
--volume "$PWD:$PWD" \
153+
--workdir "$PWD" \
154+
docker.io/library/dart:latest \
155+
/bin/sh -c "dart pub get && dart run grinder pkg-github-linux-${{ matrix.arch }}"
123156
env: {GH_BEARER_TOKEN: "${{ github.token }}"}
124157

125158
deploy_github_macos:
@@ -134,9 +167,9 @@ jobs:
134167
with: { version: "${{ env.protoc_version }}", repo-token: "${{ github.token }}" }
135168
- uses: dart-lang/setup-dart@v1
136169
- run: dart pub get
137-
- run: dart pub run grinder protobuf
170+
- run: dart run grinder protobuf
138171
- name: Deploy
139-
run: dart pub run grinder pkg-github-macos
172+
run: dart run grinder pkg-github-macos
140173
env: {GH_BEARER_TOKEN: "${{ github.token }}"}
141174

142175
deploy_github_windows:
@@ -151,15 +184,15 @@ jobs:
151184
with: { version: "${{ env.protoc_version }}", repo-token: "${{ github.token }}" }
152185
- uses: dart-lang/setup-dart@v1
153186
- run: dart pub get
154-
- run: dart pub run grinder protobuf
187+
- run: dart run grinder protobuf
155188
- name: Deploy
156-
run: dart pub run grinder pkg-github-windows
189+
run: dart run grinder pkg-github-windows
157190
env: {GH_BEARER_TOKEN: "${{ github.token }}"}
158191

159192
release_embedded_host:
160193
name: "Release Embedded Host"
161194
runs-on: ubuntu-latest
162-
needs: [deploy_github_linux, deploy_github_macos, deploy_github_windows]
195+
needs: [deploy_github_linux, deploy_github_linux_qemu, deploy_github_macos, deploy_github_windows]
163196
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass-embedded'"
164197

165198
steps:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222
typed_data: ^1.1.0
2323

2424
dev_dependencies:
25-
cli_pkg: ^1.4.0
25+
cli_pkg: ^2.1.0
2626
grinder: ^0.9.0
2727
protoc_plugin: ^20.0.0
2828
test: ^1.0.0
@@ -31,4 +31,4 @@ dev_dependencies:
3131
pubspec_parse: ^1.0.0
3232
pub_semver: ^2.0.0
3333
sass_analysis:
34-
git: {url: git://github.com/sass/dart-sass, path: analysis}
34+
git: {url: https://github.com/sass/dart-sass.git, path: analysis}

tool/grind.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dart pub run protoc_plugin %*
5151
}
5252

5353
if (Platform.environment['UPDATE_SASS_PROTOCOL'] != 'false') {
54-
await cloneOrPull("git://github.com/sass/embedded-protocol");
54+
await cloneOrPull("https://github.com/sass/embedded-protocol.git");
5555
}
5656

5757
await runAsync("protoc",

0 commit comments

Comments
 (0)