sforkowany z mirror/meshtastic-firmware
make check a different job on ci
rodzic
6883bc7afc
commit
437aa1e9af
|
@ -7,15 +7,8 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# setup:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
|
|
||||||
# - name: Startup
|
|
||||||
# run: echo "No action setup currently needed, skipping..."
|
|
||||||
|
|
||||||
ci-build:
|
ci-check:
|
||||||
# needs: setup
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -26,7 +19,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install cppcheck
|
- name: Install cppcheck
|
||||||
run: |
|
run: |
|
||||||
apt-get install -y cppcheck
|
sudo apt-get install -y cppcheck
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
@ -40,9 +33,40 @@ jobs:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip
|
key: ${{ runner.os }}-pip
|
||||||
|
|
||||||
#- name: Install linux apt packages
|
- name: Upgrade python tools and install platformio
|
||||||
# run: |
|
run: |
|
||||||
# sudo apt-get install -y libgpiod-dev
|
python -m pip install --upgrade pip
|
||||||
|
pip install -U platformio
|
||||||
|
|
||||||
|
- name: Upgrade platformio
|
||||||
|
run: |
|
||||||
|
pio upgrade
|
||||||
|
|
||||||
|
- name: Check everything
|
||||||
|
run: bin/check-all.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ci-build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
|
||||||
|
- name: Cache python libs
|
||||||
|
uses: actions/cache@v1
|
||||||
|
id: cache-pip # needed in if test
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip
|
||||||
|
|
||||||
- name: Upgrade python tools
|
- name: Upgrade python tools
|
||||||
# We actually want to run this every time
|
# We actually want to run this every time
|
||||||
|
@ -92,9 +116,6 @@ jobs:
|
||||||
# - name: Build for wisblock RAK4631
|
# - name: Build for wisblock RAK4631
|
||||||
# run: platformio run -e rak4631
|
# run: platformio run -e rak4631
|
||||||
|
|
||||||
- name: Check everything
|
|
||||||
run: bin/check-all.sh
|
|
||||||
|
|
||||||
- name: Build everything
|
- name: Build everything
|
||||||
run: bin/build-all.sh
|
run: bin/build-all.sh
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue