chore(state-manager): update state manager python version & update dependencies #2425
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: "motor-control build/test" | |
on: | |
pull_request: | |
paths: | |
- "motor-control/**" | |
- "include/motor-control/**" | |
- "cmake/*" | |
- "!cmake/Arduino*" | |
- "CMakeLists.txt" | |
- "CMakePresets.json" | |
- ".clang-format" | |
- ".clang-tidy" | |
push: | |
paths: | |
- "motor-control/**" | |
- "include/motor-control/**" | |
- "cmake/*" | |
- "!cmake/Arduino*" | |
- "CMakeLists.txt" | |
- "CMakePresets.json" | |
- ".clang-format" | |
- ".clang-tidy" | |
- ".github/workflows/common.yaml" | |
branches: | |
- "*" | |
tags: | |
- "motor-control@*" | |
workflow_dispatch: | |
env: | |
ci: 1 | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
host-compile-test: | |
name: "Host-Compile/Test" | |
runs-on: "ubuntu-20.04" | |
timeout-minutes: 10 | |
steps: | |
- run: | | |
sudo apt update | |
sudo apt install gcc-10 g++-10 | |
- uses: "actions/checkout@v2" | |
with: | |
fetch-depth: 0 | |
- uses: "actions/cache@v3" | |
with: | |
path: "./stm32-tools" | |
key: ${{ runner.os }}-${{ hashFiles('**/cmake/*') }}-${{ secrets.CACHE_VERSION }} | |
- name: "Configure" | |
run: cmake --preset=host-gcc10 . | |
- name: "Format check" | |
run: cmake --build ./build-host --target motor-control-format-ci | |
- name: "Build and test" | |
run: cmake --build ./build-host --target motor-control-build-and-test |