2020-03-01 03:05:48 +00:00
|
|
|
name: Continuous Integration
|
2020-03-16 00:42:48 +00:00
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2020-02-27 01:20:19 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-02-23 09:07:38 +00:00
|
|
|
setup:
|
2020-02-27 01:20:19 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-03-09 05:16:41 +00:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
2020-02-27 01:20:19 +00:00
|
|
|
- name: Setup Python
|
2021-03-09 05:16:41 +00:00
|
|
|
uses: actions/setup-python@v2
|
2020-02-27 01:20:19 +00:00
|
|
|
with:
|
2020-02-27 01:37:08 +00:00
|
|
|
python-version: 3.x
|
2020-02-27 01:20:19 +00:00
|
|
|
- name: Install Platform IO
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install -U platformio
|
2020-07-10 04:37:45 +00:00
|
|
|
- name: Install extra python tools
|
2020-07-10 18:44:46 +00:00
|
|
|
run: |
|
2020-07-10 04:49:07 +00:00
|
|
|
pip install -U adafruit-nrfutil
|
2021-02-07 02:44:31 +00:00
|
|
|
- name: Install libs needed for linux build
|
|
|
|
run: |
|
|
|
|
sudo apt install -y libpsocksxx-dev
|
2021-02-07 02:49:14 +00:00
|
|
|
- name: Build for tbeam
|
|
|
|
run: platformio run -e tbeam
|
|
|
|
- name: Build for heltec
|
|
|
|
run: platformio run -e heltec
|
|
|
|
- name: Build for lora-relay-v1
|
|
|
|
run: platformio run -e lora-relay-v1
|
2021-03-12 12:42:22 +00:00
|
|
|
# Turn off linux for now
|
|
|
|
#- name: Build for linux
|
|
|
|
# run: platformio run -e linux
|