Skip to content

Pr add imu fft

Pr add imu fft #40

name: build_and_deploy
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
build_and_deploy:
strategy:
matrix:
include:
- os: ubuntu-22.04
target: all
- os: windows-2022
target: dronecan_v2
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install dependencies
run: |
python -m pip install -r requirements.txt
python -m pip install yakut
if [ "${{ runner.os }}" == "Linux" ]; then
sudo apt-get install -y gcc-arm-none-eabi
elif [ "${{ runner.os }}" == "Windows" ]; then
choco install -y gcc-arm-embedded make
choco install -y cmake --version=3.31.1
fi
shell: bash
- name: Build
run: make ${{ matrix.target }}
- name: Deploy binaries to Telegram
if: matrix.os == 'ubuntu-22.04' && matrix.target == 'all' && github.ref == 'refs/heads/main' && github.repository == 'RaccoonlabDev/mini_v2_node'
run: ./scripts/deploy_release_to_telegram.py --bot-token ${{ secrets.TELEGRAM_BOT_TOKEN }} --chat-id ${{ secrets.TELEGRAM_CHAT_ID }}