From 8a3ba237fa14250400f2bc1636df907b51266f3b Mon Sep 17 00:00:00 2001 From: Moju Zhao Date: Sun, 5 Jan 2025 03:10:52 +0900 Subject: [PATCH 1/2] [GA][Firmware Build] change the action file name --- .github/workflows/{spinal_build.yml => firmware_build.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{spinal_build.yml => firmware_build.yml} (100%) diff --git a/.github/workflows/spinal_build.yml b/.github/workflows/firmware_build.yml similarity index 100% rename from .github/workflows/spinal_build.yml rename to .github/workflows/firmware_build.yml From f83cac7e07ec868e9d80bc06f34ec0d10eabba26 Mon Sep 17 00:00:00 2001 From: Moju Zhao Date: Sun, 5 Jan 2025 03:14:12 +0900 Subject: [PATCH 2/2] [GA][Firware Build][Neuron] add script to build neuron --- .github/workflows/firmware_build.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firmware_build.yml b/.github/workflows/firmware_build.yml index cc1cfa6bb..cff419339 100644 --- a/.github/workflows/firmware_build.yml +++ b/.github/workflows/firmware_build.yml @@ -112,14 +112,30 @@ jobs: echo "All 5 attempts for Spinal F7 have failed." exit 1 - - name: Upload H7 artifacts # Upload required H7 files for flash. + - 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.* \ No newline at end of file