mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 19:05:44 +00:00
improve github actions
This commit is contained in:
parent
7d3115bb9b
commit
2ae6a4f46c
41
.github/workflows/main.yml
vendored
41
.github/workflows/main.yml
vendored
@ -1,27 +1,54 @@
|
|||||||
name: Continuous Integration
|
name: Continuous Integration
|
||||||
on:
|
on:
|
||||||
- push
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
- pull_request
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
echo "No action setup currently needed, skipping..."
|
||||||
|
|
||||||
|
build:
|
||||||
|
needs: setup
|
||||||
|
runs-on: ubuntu-latest
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: 'recursive'
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- name: Install Platform IO and meshtastic-python
|
|
||||||
|
- 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: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -U platformio meshtastic
|
pip install -U platformio meshtastic adafruit-nrfutil
|
||||||
- name: Install extra python tools
|
|
||||||
|
- 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: |
|
run: |
|
||||||
pip install -U adafruit-nrfutil
|
pio upgrade
|
||||||
|
|
||||||
- name: Build for tbeam
|
- name: Build for tbeam
|
||||||
run: platformio run -e tbeam
|
run: platformio run -e tbeam
|
||||||
- name: Build for heltec
|
- name: Build for heltec
|
||||||
|
@ -1 +0,0 @@
|
|||||||
www.meshtastic.org
|
|
Loading…
Reference in New Issue
Block a user