2023-01-27 16:22:17 +00:00
|
|
|
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
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: actions/checkout@v4
|
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}}
|
2023-01-27 16:22:17 +00:00
|
|
|
|
2024-06-07 13:36:31 +00:00
|
|
|
- name: Install dependencies
|
2022-11-20 01:23:35 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2024-07-10 14:35:18 +00:00
|
|
|
sudo apt-get -y update --fix-missing
|
2024-06-07 13:36:31 +00:00
|
|
|
sudo apt-get install -y cppcheck libbluetooth-dev libgpiod-dev libyaml-cpp-dev
|
2023-12-29 18:35:42 +00:00
|
|
|
|
2022-11-20 00:30:43 +00:00
|
|
|
- name: Setup Python
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: actions/setup-python@v5
|
2022-11-20 00:30:43 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.x
|
|
|
|
|
|
|
|
- name: Cache python libs
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: actions/cache@v4
|
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
|
2024-07-29 11:11:08 +00:00
|
|
|
pip install -U setuptools<72.0.0
|
2022-11-20 00:30:43 +00:00
|
|
|
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: |
|
2023-01-27 16:22:17 +00:00
|
|
|
pio upgrade
|