From 8e9745a6528f737ef867871027fdd0f7faefd38f Mon Sep 17 00:00:00 2001 From: Aleksandr Date: Tue, 2 Nov 2021 14:50:35 +0300 Subject: [PATCH] Add version.c generation to dockerbuild and actions --- .github/actions/release-firmware/action.yml | 3 +++ Dockerfile | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/actions/release-firmware/action.yml b/.github/actions/release-firmware/action.yml index 0ce949da..1cd85e7a 100644 --- a/.github/actions/release-firmware/action.yml +++ b/.github/actions/release-firmware/action.yml @@ -19,6 +19,9 @@ runs: cd ${{ github.workspace }}/Firmware + mkdir -p autogen + python ../tools/odrive/version.py --output autogen/version.c + echo "CONFIG_STRICT=true" > tup.config echo "CONFIG_BOARD_VERSION=${{ inputs.board_version }}" >> tup.config tup init diff --git a/Dockerfile b/Dockerfile index 06bdadf1..6e30b45e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,10 @@ WORKDIR ODrive/Firmware # Must attach the firmware tree into the container CMD \ + # Regenerate autogen/version.c + mkdir -p autogen && \ + python ../tools/odrive/version.py \ + --output autogen/version.c && \ # Regenerate python interface python interface_generator_stub.py \ --definitions odrive-interface.yaml \