Update clang_format.sh #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build STM32CubeIDE Project | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Check if project directory exists | |
- name: Ensure STM32CubeIDE project path | |
run: | | |
if [ ! -f "motor_controller/motor_controller/STM32CubeIDE/.project" ]; then | |
echo "Project file not found. Please ensure the path is correct." | |
exit 1 | |
else | |
echo "Project file found." | |
fi | |
# Build all configurations (Debug and Release) using GitHub Action | |
- name: Build STM32CubeIDE project - All Configurations | |
uses: xanderhendriks/action-build-stm32cubeide@v13.0 | |
with: | |
project-path: 'motor_controller/motor_controller/STM32CubeIDE' # Path to the STM32CubeIDE project directory | |
project-target: 'motor_controller' # Set the project target to motor_controller |