make check a different job on ci

1.2-legacy
Mike Kinney 2022-01-24 20:04:31 +00:00
rodzic 6883bc7afc
commit 437aa1e9af
1 zmienionych plików z 36 dodań i 15 usunięć

Wyświetl plik

@ -7,15 +7,8 @@ on:
branches: [ master ]
jobs:
# setup:
# runs-on: ubuntu-latest
# steps:
# - name: Startup
# run: echo "No action setup currently needed, skipping..."
ci-build:
# needs: setup
ci-check:
runs-on: ubuntu-latest
steps:
@ -26,7 +19,7 @@ jobs:
- name: Install cppcheck
run: |
apt-get install -y cppcheck
sudo apt-get install -y cppcheck
- name: Setup Python
uses: actions/setup-python@v2
@ -40,9 +33,40 @@ jobs:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
#- name: Install linux apt packages
# run: |
# sudo apt-get install -y libgpiod-dev
- name: Upgrade python tools and install platformio
run: |
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
# We actually want to run this every time
@ -92,9 +116,6 @@ jobs:
# - name: Build for wisblock RAK4631
# run: platformio run -e rak4631
- name: Check everything
run: bin/check-all.sh
- name: Build everything
run: bin/build-all.sh