Skip to content

Commit

Permalink
[GA][Firware Build][Neuron] add script to build neuron
Browse files Browse the repository at this point in the history
  • Loading branch information
Moju Zhao committed Jan 2, 2025
1 parent 8afc2e7 commit cca6c07
Showing 1 changed file with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,35 @@ jobs:
-vmargs -Dorg.eclipse.cdt.core.build.parallel=true \
-Dorg.eclipse.cdt.core.build.parallel.threads=12
- name: Upload H7 artifacts # Upload required H7 files for flash.
- name: Clean up STM32CubeIDE # Clean up STM32CubeIDE WS to build same name project
run: |
rm -rf ~/STM32CubeIDE/workspace_1.8.0/.metadata
- name: Build Neuron F4 as STM32CubeIDE project # Build Neuron F4 firmware with STM32CubeIDE
run: |
/opt/st/stm32cubeide_1.8.0/stm32cubeide -nosplash \
-application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-data ~/STM32CubeIDE/workspace_1.8.0/ \
-import aerial_robot_nerve/neuron/neuron_f4//STM32CubeIDE/ \
-cleanBuild neuron/Debug \
-vmargs -Dorg.eclipse.cdt.core.build.parallel=true \
-Dorg.eclipse.cdt.core.build.parallel.threads=12
- name: Upload Spinal H7 artifacts # Upload required Spinal H7 files for flash.
uses: actions/upload-artifact@v4
with:
name: SpinalH7.artifacts
path: aerial_robot_nerve/spinal/mcu_project/boards/stm32H7/STM32CubeIDE/Debug/spinal.*

- name: Upload F7 artifacts # Upload required F7 files for flash.
- name: Upload Spinal F7 artifacts # Upload required Spinal F7 files for flash.
uses: actions/upload-artifact@v4
with:
name: SpinalF7.artifacts
path: aerial_robot_nerve/spinal/mcu_project/boards/stm32F7/STM32CubeIDE/Debug/spinal.*

- name: Upload Neuron F4 artifacts # Upload required Neuron F4 files for flash.
uses: actions/upload-artifact@v4
with:
name: NeuronF4.artifacts
path: aerial_robot_nerve/neuron/neuron_f4/STM32CubeIDE/Debug/neuron.*

0 comments on commit cca6c07

Please sign in to comment.