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

Commit 3d2c927

Browse files
ntkmenex3
andauthored
Re-use protobuf artifact instead of building on macos arm64 (#101)
Co-authored-by: Natalie Weizenbaum <[email protected]>
1 parent d1ab9e6 commit 3d2c927

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,15 @@ jobs:
229229
- uses: dart-lang/setup-dart@v1
230230
- run: dart pub get
231231
- run: dart run grinder protobuf
232+
# We need to upload the compiled protobuf rather than recompiling it on
233+
# other platforms because arduino/setup-protoc currently) requires Node 12
234+
# which doesn't support ARM.
235+
- uses: actions/upload-artifact@v3
236+
with:
237+
name: embedded-protocol
238+
path: |
239+
build/embedded-protocol
240+
lib/src/embedded_sass.*.dart
232241
- name: Deploy
233242
run: dart run grinder pkg-github-release pkg-github-linux-ia32 pkg-github-linux-x64
234243
env: {GH_BEARER_TOKEN: "${{ github.token }}"}
@@ -249,11 +258,9 @@ jobs:
249258

250259
steps:
251260
- uses: actions/checkout@v2
252-
- uses: arduino/setup-protoc@v1
253-
with: { version: "${{ env.protoc_version }}", repo-token: "${{ github.token }}" }
254-
- uses: dart-lang/setup-dart@v1
255-
- run: dart pub get
256-
- run: dart run grinder protobuf
261+
- uses: actions/download-artifact@v3
262+
with:
263+
name: embedded-protocol
257264
- uses: docker/setup-qemu-action@v1
258265
- name: Deploy
259266
run: |
@@ -283,11 +290,11 @@ jobs:
283290

284291
steps:
285292
- uses: actions/checkout@v2
286-
- uses: arduino/setup-protoc@v1
287-
with: { version: "${{ env.protoc_version }}", repo-token: "${{ github.token }}" }
293+
- uses: actions/download-artifact@v3
294+
with:
295+
name: embedded-protocol
288296
- uses: dart-lang/setup-dart@v1
289297
- run: dart pub get
290-
- run: dart run grinder protobuf
291298
- name: Deploy
292299
run: dart run grinder pkg-github-${{ matrix.platform }}
293300
env: {GH_BEARER_TOKEN: "${{ github.token }}"}

0 commit comments

Comments
 (0)