mirror of
https://github.com/rvdbreemen/OTGW-firmware
synced 2024-11-16 04:33:49 +01:00
Trying to move & rename in the CI pipeline
This commit is contained in:
parent
d6c6ddc75c
commit
2f34aeb771
19
.github/actions/build/action.yml
vendored
19
.github/actions/build/action.yml
vendored
@ -5,21 +5,20 @@ description: Build using arduino-cli and makefile
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- id: build
|
||||
run: make -j$(nproc)
|
||||
shell: bash
|
||||
- id: filesys
|
||||
run: make filesystem
|
||||
run: |
|
||||
make filesystem
|
||||
mv build/littlefs.bin build/littlefs-${{steps.semver.outputs.semver}}.bin
|
||||
- id: build
|
||||
run: |
|
||||
make -j$(nproc)
|
||||
mv build/**/*.bin build/*-${{steps.semver.outputs.semver}}.bin
|
||||
mv build/**/*.elf build/*-${{steps.semver.outputs.semver}}.elf
|
||||
shell: bash
|
||||
shell: bash
|
||||
- id: semver
|
||||
run: cat version.h | sed -n '/^#define _SEMVER_FULL.*$/s/^#.*"\(.*\)"$/semver=\1/p' >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
- if: rename
|
||||
run: |
|
||||
mv build/*.bin build/*-${{steps.semver.outputs.semver}}.bin
|
||||
mv build/**/*.bin build/*-${{steps.semver.outputs.semver}}.bin
|
||||
mv build/**/*.elf build/*-${{steps.semver.outputs.semver}}.elf
|
||||
shell: bash
|
||||
- id: upload
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user