From 2f34aeb771b616f28f725662c5172f285f8e4a88 Mon Sep 17 00:00:00 2001 From: Robert van den Breemen Date: Sun, 17 Mar 2024 18:10:41 +0100 Subject: [PATCH] Trying to move & rename in the CI pipeline --- .github/actions/build/action.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 65e05ae..ae07ca0 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -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: