Add version.c generation to dockerbuild and actions

This commit is contained in:
Aleksandr
2021-11-02 14:50:35 +03:00
parent 36ae22c462
commit 8e9745a652
2 changed files with 7 additions and 0 deletions

View File

@@ -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

View File

@@ -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 \