Add a release build workflow

This commit is contained in:
Kevin Hester
2021-04-16 13:37:00 +08:00
parent c5bb62202d
commit e17374080f
3 changed files with 83 additions and 30 deletions

View File

@@ -24,35 +24,7 @@ jobs:
with:
submodules: 'recursive'
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Cache python libs
uses: actions/cache@v1
id: cache-pip # needed in if test
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- name: Upgrade python tools
# We actually want to run this every time
# if: steps.cache-pip.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
pip install -U platformio meshtastic adafruit-nrfutil
- name: Cache platformio
uses: actions/cache@v1
id: cache-platformio # needed in if test
with:
path: ~/.platformio
key: ${{ runner.os }}-platformio
- name: Upgrade platformio
run: |
pio upgrade
- uses: ./.github/actions/initbuild
# We now run integration test before other build steps (to quickly see runtime failures)
- name: Build for native
@@ -79,4 +51,4 @@ jobs:
with:
name: built
path: release/archive/firmware-*.zip
rentention-days: 30
retention-days: 30