try to fix auto rename of output files
This commit is contained in:
17
.github/workflows/build-all.yml
vendored
17
.github/workflows/build-all.yml
vendored
@@ -1,9 +1,4 @@
|
|||||||
#
|
name: Build All Firmware Variants
|
||||||
# test-builds.yml
|
|
||||||
# Do test builds to catch compile errors
|
|
||||||
#
|
|
||||||
|
|
||||||
name: CI
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
#pull_request:
|
#pull_request:
|
||||||
@@ -95,9 +90,15 @@ jobs:
|
|||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
run: platformio run --environment ${{ matrix.platform }}
|
run: platformio run --environment ${{ matrix.platform }}
|
||||||
|
|
||||||
|
- name: Rename Output Files
|
||||||
|
run: |
|
||||||
|
CUSTOM_BUILD_VERSION=$(egrep -o "([0-9]{1,}\.)+[0-9]{1,}" Marlin/src/inc/Version.h -m2 | tail -n1)
|
||||||
|
mv .pio/build/${{ matrix.platform }}/firmware.hex .pio/build/${{ matrix.platform }}/${{ matrix.platform }}_v$CUSTOM_BUILD_VERSION.hex
|
||||||
|
done
|
||||||
|
|
||||||
- name: Archive production artifacts
|
- name: Archive production artifacts
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.platform }}.hex
|
name: ${{ matrix.platform }}
|
||||||
path: |
|
path: |
|
||||||
.pio/build/${{ matrix.platform }}/firmware.hex
|
.pio/build/${{ matrix.platform }}/${{ matrix.platform }}_v*.hex
|
||||||
|
Reference in New Issue
Block a user