mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 17:13:38 +00:00
ci changes
This commit is contained in:
parent
35a9c23bb6
commit
50f739bacf
95
.github/workflows/main.yml
vendored
95
.github/workflows/main.yml
vendored
@ -9,58 +9,61 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
echo "No action setup currently needed, skipping..."
|
# echo "No action setup currently needed, skipping..."
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: setup
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
- name: Checkout code
|
steps:
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: 3.x
|
|
||||||
|
|
||||||
- name: Cache python libs
|
- name: Checkout code
|
||||||
uses: actions/cache@v1
|
uses: actions/checkout@v2
|
||||||
id: cache-pip # needed in if test
|
with:
|
||||||
with:
|
submodules: 'recursive'
|
||||||
path: ~/.cache/pip
|
|
||||||
key: ${{ runner.os }}-pip
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
|
||||||
- name: Upgrade python tools
|
- name: Cache python libs
|
||||||
# We actually want to run this every time
|
uses: actions/cache@v1
|
||||||
# if: steps.cache-pip.outputs.cache-hit != 'true'
|
id: cache-pip # needed in if test
|
||||||
run: |
|
with:
|
||||||
python -m pip install --upgrade pip
|
path: ~/.cache/pip
|
||||||
pip install -U platformio meshtastic adafruit-nrfutil
|
key: ${{ runner.os }}-pip
|
||||||
|
|
||||||
- name: Cache platformio
|
- name: Upgrade python tools
|
||||||
uses: actions/cache@v1
|
# We actually want to run this every time
|
||||||
id: cache-platformio # needed in if test
|
# if: steps.cache-pip.outputs.cache-hit != 'true'
|
||||||
with:
|
run: |
|
||||||
path: ~/.platformio
|
python -m pip install --upgrade pip
|
||||||
key: ${{ runner.os }}-platformio
|
pip install -U platformio meshtastic adafruit-nrfutil
|
||||||
|
|
||||||
- name: Upgrade platformio
|
- name: Cache platformio
|
||||||
run: |
|
uses: actions/cache@v1
|
||||||
pio upgrade
|
id: cache-platformio # needed in if test
|
||||||
|
with:
|
||||||
|
path: ~/.platformio
|
||||||
|
key: ${{ runner.os }}-platformio
|
||||||
|
|
||||||
- name: Build for tbeam
|
- name: Upgrade platformio
|
||||||
run: platformio run -e tbeam
|
run: |
|
||||||
- name: Build for heltec
|
pio upgrade
|
||||||
run: platformio run -e heltec
|
|
||||||
- name: Build for wisblock RAK4631
|
- name: Build for tbeam
|
||||||
run: platformio run -e rak4631
|
run: platformio run -e tbeam
|
||||||
- name: Build for native
|
- name: Build for heltec
|
||||||
run: platformio run -e native
|
run: platformio run -e heltec
|
||||||
- name: Integration test
|
- name: Build for wisblock RAK4631
|
||||||
run: |
|
run: platformio run -e rak4631
|
||||||
.pio/build/native/program &
|
- name: Build for native
|
||||||
sleep 5
|
run: platformio run -e native
|
||||||
echo "Simulator started, launching python test..."
|
- name: Integration test
|
||||||
python3 -c 'from meshtastic.test import testSimulator; testSimulator()'
|
run: |
|
||||||
|
.pio/build/native/program &
|
||||||
|
sleep 5
|
||||||
|
echo "Simulator started, launching python test..."
|
||||||
|
python3 -c 'from meshtastic.test import testSimulator; testSimulator()'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user