mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-02-06 23:41:53 +08:00
Add version.c generation to dockerbuild and actions
This commit is contained in:
3
.github/actions/release-firmware/action.yml
vendored
3
.github/actions/release-firmware/action.yml
vendored
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user