Skip to content

Commit

Permalink
actions upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis authored Sep 26, 2024
1 parent 2959ba7 commit d601dc7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/arduino_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: arduino/arduino-lint-action@v1
4 changes: 2 additions & 2 deletions .github/workflows/build_arduino_ide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fqbn:
- esp8266:esp8266:generic
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -36,7 +36,7 @@ jobs:
fqbn:
- esp32:esp32:esp32
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
30 changes: 9 additions & 21 deletions .github/workflows/build_platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: [push, pull_request]
jobs:
build-for-esp8266:
runs-on: ubuntu-latest
container: ghcr.io/bertmelis/pio-test-container
strategy:
matrix:
example: [
Expand All @@ -16,25 +17,21 @@ jobs:
examples/softwareserial/softwareserial.ino
]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO examples
run: pio ci --lib="." --board=d1_mini
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}

build-for-esp32:
runs-on: ubuntu-latest
container: ghcr.io/bertmelis/pio-test-container
strategy:
matrix:
example: [
Expand All @@ -45,43 +42,34 @@ jobs:
examples/simple-read-GWG/simple-read-GWG.ino
]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO examples
run: pio ci --lib="." --board=lolin32
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}

build-for-linux:
runs-on: ubuntu-latest
container: ghcr.io/bertmelis/pio-test-container
strategy:
matrix:
example: [
examples/linux/main.cpp
]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO examples
run: pio ci --lib="." --project-conf="./examples/linux/platformio.ini"
env:
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,10 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

container: ghcr.io/bertmelis/pio-test-container
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install platformio
- uses: actions/checkout@v4
- name: Cppcheck
run: |
pio check --flags "--suppress=unusedFunction --inline-suppr" --skip-packages --fail-on-defect=low --fail-on-defect=medium --fail-on-defect=high
7 changes: 3 additions & 4 deletions .github/workflows/cpplint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

container: ghcr.io/bertmelis/pio-test-container
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
Expand Down

0 comments on commit d601dc7

Please sign in to comment.