More reusable workflows

This commit is contained in:
Ben Meadors
2022-11-19 19:23:35 -06:00
parent 1e06b2d51e
commit 1fac9ee1f2
5 changed files with 95 additions and 168 deletions

View File

@@ -1,10 +1,5 @@
name: 'Build Base Composite Action'
description: 'Base build action for Meshtastic Platform IO steps'
outputs:
version:
description: "Release version string"
value: ${{ steps.outputs.version }}
name: 'Setup Build Base Composite Action'
description: 'Base build actions for Meshtastic Platform IO steps'
runs:
using: "composite"
@@ -15,6 +10,11 @@ runs:
submodules: "recursive"
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Install cppcheck
shell: bash
run: |
sudo apt-get install -y cppcheck
- name: Setup Python
uses: actions/setup-python@v4
@@ -33,13 +33,9 @@ runs:
run: |
python -m pip install --upgrade pip
pip install -U platformio adafruit-nrfutil
pip install -U meshtastic --pre
- name: Upgrade platformio
shell: bash
run: |
pio upgrade
- name: Get release version string
shell: bash
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
id: version
pio upgrade