move from travis to github actions

pull/3/head
Peter Buchegger 2020-11-03 20:07:23 +01:00
rodzic b0a39f1c06
commit 125841604f
2 zmienionych plików z 26 dodań i 13 usunięć

26
.github/workflows/main.yml vendored 100644
Wyświetl plik

@ -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

Wyświetl plik

@ -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