Skip to content

Commit

Permalink
Fix: Trying to get a clean filesystem rename
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdbreemen committed Mar 17, 2024
1 parent bb0eabe commit ac10b1d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@ runs:
- id: create-build-dir
run: mkdir -p build
shell: bash
- id: filesys
run: |
make filesystem
for file in build/*.littlefs.bin; do mv "$file" "build/$(basename ${file%.*}).${{steps.semver.outputs.semver}}.littlefs.bin"; done
shell: bash
- id: build
run: |
make -j$(nproc)
find build -type f
for file in build/**/*.bin; do mv "$file" "build/$(basename ${file%.*})-${{steps.semver.outputs.semver}}.bin"; done
for file in build/**/*.elf; do mv "$file" "build/$(basename ${file%.*})-${{steps.semver.outputs.semver}}.elf"; done
shell: bash
- id: filesys
run: |
make filesystem
for file in build/*.littlefs.bin; do mv "$file" "build/$(basename -s .littlefs.bin $file).${{steps.semver.outputs.semver}}.littlefs.bin"; done
shell: bash

- id: upload
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit ac10b1d

Please sign in to comment.