mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-01 18:29:56 +00:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
|
name: 'Build Base Composite Action'
|
||
|
description: 'Base build action for Meshtastic Platform IO steps'
|
||
|
|
||
|
outputs:
|
||
|
version:
|
||
|
description: "Release version string"
|
||
|
value: ${{ steps.outputs.version }}
|
||
|
|
||
|
runs:
|
||
|
using: "composite"
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v3
|
||
|
with:
|
||
|
submodules: "recursive"
|
||
|
ref: ${{github.event.pull_request.head.ref}}
|
||
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
||
|
|
||
|
- name: Setup Python
|
||
|
uses: actions/setup-python@v4
|
||
|
with:
|
||
|
python-version: 3.x
|
||
|
|
||
|
- name: Cache python libs
|
||
|
uses: actions/cache@v3
|
||
|
id: cache-pip # needed in if test
|
||
|
with:
|
||
|
path: ~/.cache/pip
|
||
|
key: ${{ runner.os }}-pip
|
||
|
|
||
|
- name: Upgrade python tools
|
||
|
run: |
|
||
|
python -m pip install --upgrade pip
|
||
|
pip install -U platformio adafruit-nrfutil
|
||
|
|
||
|
- name: Upgrade platformio
|
||
|
run: |
|
||
|
pio upgrade
|
||
|
|
||
|
- name: Get release version string
|
||
|
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
|
||
|
id: version
|