diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b940d07 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: PlatformIO CI + +on: [push, pull_request] + +jobs: + PlatformIO-Check: + runs-on: ubuntu-latest + steps: + - run: sudo apt-get install python3-setuptools python3-wheel + - run: pip3 install platformio + - run: echo "$HOME/.local/bin" >> $GITHUB_PATH + - uses: actions/checkout@v2 + - run: platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high --skip-packages --flags "--suppress=*:*.pio\* --inline-suppr" -v + + PlatformIO-Build: + runs-on: ubuntu-latest + steps: + - run: sudo apt-get install python3-setuptools python3-wheel + - run: pip3 install platformio + - run: echo "$HOME/.local/bin" >> $GITHUB_PATH + - uses: actions/checkout@v2 + - run: platformio run + - uses: actions/upload-artifact@v2 + with: + name: firmware + path: .pio/build/*/firmware.bin diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ed77013..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: python -python: - - "2.7" -sudo: false -cache: - directories: - - "~/.platformio" -install: - - pip install -U platformio - - platformio update -script: - - platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high - - platformio run