Skip to content

Commit 2729277

Browse files
committed
Create separate tester artifacts for each build
Previously, a single workflow artifact was created by the "Arduino IDE" GitHub Actions workflow. This artifact contained the builds for each operating system, including all three versions of the Windows build. This resulted in beta testers needing to do a >1 GB download for every build, even though they likely needed only ~200 MB of what they downloaded. Producing separate workflows makes it easier for beta testers to participate in the development and is less wasteful of resources.
1 parent da424f3 commit 2729277

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Diff for: .github/workflows/build.yml

+33
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,36 @@ jobs:
183183
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
184184
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
185185
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
186+
187+
artifacts:
188+
name: ${{ matrix.artifact.name }} artifact
189+
needs: build
190+
if: always() && needs.build.result != 'skipped'
191+
runs-on: ubuntu-latest
192+
193+
strategy:
194+
matrix:
195+
artifact:
196+
- path: "*Linux_64bit.zip"
197+
name: Linux_X86-64
198+
- path: "*macOS_64bit.dmg"
199+
name: macOS
200+
- path: "*Windows_64bit.exe"
201+
name: Windows_X86-64_interactive_installer
202+
- path: "*Windows_64bit.msi"
203+
name: Windows_X86-64_MSI
204+
- path: "*Windows_64bit.zip"
205+
name: Windows_X86-64_zip
206+
207+
steps:
208+
- name: Download job transfer artifact
209+
uses: actions/download-artifact@v2
210+
with:
211+
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
212+
path: ${{ env.JOB_TRANSFER_ARTIFACT }}
213+
214+
- name: Upload tester build artifact
215+
uses: actions/upload-artifact@v2
216+
with:
217+
name: ${{ matrix.artifact.name }}
218+
path: ${{ env.JOB_TRANSFER_ARTIFACT }}/${{ matrix.artifact.path }}

0 commit comments

Comments
 (0)