Update c-cpp.yml

This commit is contained in:
Peter Buchegger 2020-06-15 04:10:17 +02:00 committed by GitHub
parent 6adaa046f4
commit 34d0bba41b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,26 +11,18 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: sudo apt-get install python3-setuptools python3-wheel - run: sudo apt-get install python3-setuptools python3-wheel
- run: pip3 -v install platformio - run: pip3 install platformio
- run: echo "::add-path::~/.local/bin" - run: echo "::add-path::~/.local/bin"
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: pio run - run: platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high
- uses: actions/upload-artifact@v1 - run: platformio run
with:
name: build_files
path: .pio/build
build: build:
runs-on: self-hosted runs-on: self-hosted
needs: precompile needs: precompile
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/download-artifact@v1
with:
name: build_files
- name: check for updates - name: check for updates
run: platformio update run: platformio update
- name: run cppcheck
run: echo platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high
- name: compile - name: compile
run: platformio run run: platformio run -e ttgo-lora32-v1