Skip to content

Porting ECU/CAN library #9

Porting ECU/CAN library

Porting ECU/CAN library #9

Workflow file for this run

name: CI Build
# Define the trigger event(s)
on: push
# Jobs run in parallel by default, each runs steps in sequence
jobs:
compile-firmware:
runs-on: ubuntu-latest
steps:
- name: Check out this repo and submodules
uses: actions/checkout@v3
- name: Build stm32CubeIDE project
uses: xanderhendriks/action-build-stm32cubeide@v10.0
with:
project-path: 'Firmware/Shifter_System'
project-target: 'Shifter_System/Debug'
run-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v3
- name: Install Ninja
run: sudo apt-get install ninja-build
- name: Build and run unit tests
run: |
cd Firmware/Tests
cmake -G "Ninja" -S . -B ./build
cd build
ninja
./shifter-unit-tests