Skip to content

Commit

Permalink
[GA][neuron] build neuron firmware by github action
Browse files Browse the repository at this point in the history
  • Loading branch information
sugikazu75 committed Dec 28, 2024
1 parent c89afb8 commit f397f65
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/neuron_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Spinal Firmware
on : [push, pull_request, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/ut-dragon-lab/stm32cubeide_1.8.0_build_env:latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# submodules too
submodules: recursive

- 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 spinal/Debug \
-vmargs -Dorg.eclipse.cdt.core.build.parallel=true \
-Dorg.eclipse.cdt.core.build.parallel.threads=12
- name: Upload Neuron F4 artifacts # Upload required 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 f397f65

Please sign in to comment.