From 437aa1e9af5bfad8b1dab2bb2a8c80f477a40c65 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Mon, 24 Jan 2022 20:04:31 +0000 Subject: [PATCH] make check a different job on ci --- .github/workflows/main.yml | 51 +++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78f7b6f1..98a563b9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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