name: Continuous Integration
on:
  - push
  - pull_request

jobs:
  main:
    name: Main
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Checkout submodules
        uses: textbook/git-checkout-submodule-action@master
      - name: Setup Python
        uses: actions/setup-python@master
        with:
          python-version: 3.x
      - name: Install Platform IO
        run: |
          python -m pip install --upgrade pip
          pip install -U platformio
      - name: Install extra python tools
        run: |
          pip install -U adafruit-nrfutil
      - name: Build
        run: platformio run -e tbeam -e heltec -e lora-relay-v1 -e linux
