firmware/.github/workflows/composite/build_base.yml

39 lines
906 B
YAML
Raw Normal View History

2022-11-20 00:30:43 +00:00
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: 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
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
- name: Upgrade platformio
2022-11-20 00:35:00 +00:00
shell: bash
2022-11-20 00:30:43 +00:00
run: |
pio upgrade
- name: Get release version string
2022-11-20 00:35:00 +00:00
shell: bash
2022-11-20 00:30:43 +00:00
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
id: version