-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (29 loc) · 1.02 KB
/
ci_build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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/[email protected]
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