Skip to content

Commit 0cd5838

Browse files
committed
bricks/ev3rt: Publish artifacts.
1 parent 93ee273 commit 0cd5838

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,25 @@ jobs:
283283
run: chmod +x micropython/mpy-cross/build/mpy-cross
284284
- name: Build
285285
run: make $MAKEOPTS -C bricks/ev3rt
286+
- name: Short hash
287+
id: vars
288+
run: echo "short_sha=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_OUTPUT
289+
- name: Upload EV3 uImage
290+
if: ${{ success() }}
291+
uses: actions/upload-artifact@v4
292+
with:
293+
name: ev3rt-uImage-build-${{ github.run_number }}-git${{ steps.vars.outputs.short_sha }}
294+
path: bricks/ev3rt/build/uImage
295+
- name: Extract firmware.zip for upload
296+
if: ${{ success() }}
297+
working-directory: bricks/ev3rt/build
298+
run: unzip firmware.zip -d upload
299+
- name: Upload EV3 bootable firmware
300+
if: ${{ success() }}
301+
uses: actions/upload-artifact@v4
302+
with:
303+
name: ev3rt-firmware-build-${{ github.run_number }}-git${{ steps.vars.outputs.short_sha }}
304+
path: bricks/ev3rt/build/upload/*
286305

287306
debug:
288307
name: debug firmware

0 commit comments

Comments
 (0)