Skip to content

Commit

Permalink
Trying to move & rename in the CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdbreemen committed Mar 17, 2024
1 parent d6c6ddc commit 2f34aeb
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,20 @@ description: Build using arduino-cli and makefile
runs:
using: composite
steps:
- id: filesys
run: |
make filesystem
mv build/littlefs.bin build/littlefs-${{steps.semver.outputs.semver}}.bin
- id: build
run: make -j$(nproc)
run: |
make -j$(nproc)
mv build/**/*.bin build/*-${{steps.semver.outputs.semver}}.bin
mv build/**/*.elf build/*-${{steps.semver.outputs.semver}}.elf
shell: bash
- id: filesys
run: make filesystem
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:
Expand Down

0 comments on commit 2f34aeb

Please sign in to comment.