name: PlatformIO CI on: push: branches: [ master ] pull_request: branches: [ master ] jobs: precompile: runs-on: ubuntu-latest steps: - run: sudo apt-get install python3-setuptools python3-wheel - run: pip3 -v install platformio - run: echo "::add-path::~/.local/bin" - uses: actions/checkout@v2 - run: PLATFORMIO_BUILD_CACHE_DIR="build_cache/" pio run - uses: actions/upload-artifact@v1 with: name: build_cache path: build_cache build: runs-on: self-hosted steps: - uses: actions/checkout@v2 - name: check for updates run: platformio update - name: run cppcheck run: echo platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high - name: compile run: platformio run