firmware/.github/actions/setup-base/action.yml

55 lines
1.3 KiB
YAML
Raw Normal View History

name: "Setup Build Base Composite Action"
description: "Base build actions for Meshtastic Platform IO steps"
2022-11-20 00:30:43 +00:00
runs:
using: "composite"
steps:
2022-11-20 00:42:27 +00:00
- name: Checkout code
uses: actions/checkout@v3
2022-11-20 00:50:50 +00:00
with:
submodules: "recursive"
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
2022-11-20 01:23:35 +00:00
- name: Install cppcheck
shell: bash
run: |
sudo apt-get install -y cppcheck
2022-11-20 00:30:43 +00:00
2023-12-29 18:35:42 +00:00
- name: Install libbluetooth
shell: bash
run: |
sudo apt-get install -y libbluetooth-dev
2023-12-29 22:47:42 +00:00
- name: Install libgpiod
shell: bash
run: |
sudo apt-get install -y libgpiod-dev
- name: Install libyaml-cpp
shell: bash
run: |
sudo apt-get install -y libyaml-cpp-dev
2023-12-29 18:35:42 +00:00
2022-11-20 00:30:43 +00:00
- name: Setup Python
uses: actions/setup-python@v4
2022-11-20 00:30:43 +00:00
with:
python-version: 3.x
- name: Cache python libs
uses: actions/cache@v3
2022-11-20 00:30:43 +00:00
id: cache-pip # needed in if test
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- name: Upgrade python tools
2022-11-20 00:35:00 +00:00
shell: bash
2022-11-20 00:30:43 +00:00
run: |
python -m pip install --upgrade pip
pip install -U platformio adafruit-nrfutil
2022-11-20 01:23:35 +00:00
pip install -U meshtastic --pre
2022-11-20 00:30:43 +00:00
- name: Upgrade platformio
2022-11-20 00:35:00 +00:00
shell: bash
2022-11-20 00:30:43 +00:00
run: |
pio upgrade