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 @@
|
||||
#
|
||||
# test-builds.yml
|
||||
# Do test builds to catch compile errors
|
||||
#
|
||||
|
||||
name: CI
|
||||
name: Build All Firmware Variants
|
||||
|
||||
on:
|
||||
#pull_request:
|
||||
@@ -95,9 +90,15 @@ jobs:
|
||||
- name: Run PlatformIO
|
||||
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
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: ${{ matrix.platform }}.hex
|
||||
name: ${{ matrix.platform }}
|
||||
path: |
|
||||
.pio/build/${{ matrix.platform }}/firmware.hex
|
||||
.pio/build/${{ matrix.platform }}/${{ matrix.platform }}_v*.hex
|
||||
|
Reference in New Issue
Block a user