fix an issue with mini v3 reboot by updating mini v3 submodule (#72) #14
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: 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 }} |