mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 23:44:48 +08:00
Add version.c generation to dockerbuild and actions
This commit is contained in:
@@ -19,6 +19,9 @@ runs:
|
|||||||
|
|
||||||
cd ${{ github.workspace }}/Firmware
|
cd ${{ github.workspace }}/Firmware
|
||||||
|
|
||||||
|
mkdir -p autogen
|
||||||
|
python ../tools/odrive/version.py --output autogen/version.c
|
||||||
|
|
||||||
echo "CONFIG_STRICT=true" > tup.config
|
echo "CONFIG_STRICT=true" > tup.config
|
||||||
echo "CONFIG_BOARD_VERSION=${{ inputs.board_version }}" >> tup.config
|
echo "CONFIG_BOARD_VERSION=${{ inputs.board_version }}" >> tup.config
|
||||||
tup init
|
tup init
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ WORKDIR ODrive/Firmware
|
|||||||
|
|
||||||
# Must attach the firmware tree into the container
|
# Must attach the firmware tree into the container
|
||||||
CMD \
|
CMD \
|
||||||
|
# Regenerate autogen/version.c
|
||||||
|
mkdir -p autogen && \
|
||||||
|
python ../tools/odrive/version.py \
|
||||||
|
--output autogen/version.c && \
|
||||||
# Regenerate python interface
|
# Regenerate python interface
|
||||||
python interface_generator_stub.py \
|
python interface_generator_stub.py \
|
||||||
--definitions odrive-interface.yaml \
|
--definitions odrive-interface.yaml \
|
||||||
|
|||||||
Reference in New Issue
Block a user