Skip to content

Pr fft

Pr fft #12

Workflow file for this run

name: deploy
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
deploy:
strategy:
matrix:
include:
- os: ubuntu-22.04
target: all
- os: windows-latest
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
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 cmake
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 }}