1
mirror of https://github.com/rvdbreemen/OTGW-firmware synced 2024-11-16 04:33:49 +01:00

run semver step before rest, and fix filesystem building by adding shell: bash

This commit is contained in:
Robert van den Breemen 2024-03-17 21:45:50 +01:00
parent 2f34aeb771
commit de2beaf22c

View File

@ -1,24 +1,23 @@
name: arduino-cli build
description: Build using arduino-cli and makefile
runs:
using: composite
steps:
- id: semver
run: cat version.h | sed -n '/^#define _SEMVER_FULL.*$/s/^#.*"\(.*\)"$/semver=\1/p' >> $GITHUB_OUTPUT
shell: bash
- id: filesys
run: |
make filesystem
mv build/littlefs.bin build/littlefs-${{steps.semver.outputs.semver}}.bin
shell: bash
- 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
- id: upload
uses: actions/upload-artifact@v4
with:
@ -26,4 +25,4 @@ runs:
path: |
build/**/*.bin
build/**/*.elf
build/*.bin
build/*.bin