Skip to content

Commit d601dc7

Browse files
authored
actions upgrade
1 parent 2959ba7 commit d601dc7

File tree

5 files changed

+17
-39
lines changed

5 files changed

+17
-39
lines changed

.github/workflows/arduino_lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ jobs:
55
lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
8+
- uses: actions/checkout@v4
99
- uses: arduino/arduino-lint-action@v1

.github/workflows/build_arduino_ide.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fqbn:
1313
- esp8266:esp8266:generic
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- uses: arduino/compile-sketches@v1
1717
with:
1818
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -36,7 +36,7 @@ jobs:
3636
fqbn:
3737
- esp32:esp32:esp32
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040
- uses: arduino/compile-sketches@v1
4141
with:
4242
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build_platformio.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on: [push, pull_request]
55
jobs:
66
build-for-esp8266:
77
runs-on: ubuntu-latest
8+
container: ghcr.io/bertmelis/pio-test-container
89
strategy:
910
matrix:
1011
example: [
@@ -16,25 +17,21 @@ jobs:
1617
examples/softwareserial/softwareserial.ino
1718
]
1819
steps:
19-
- uses: actions/checkout@v3
20-
- uses: actions/cache@v3
20+
- uses: actions/checkout@v4
21+
- uses: actions/cache@v4
2122
with:
2223
path: |
2324
~/.cache/pip
2425
~/.platformio/.cache
2526
key: ${{ runner.os }}-pio
26-
- uses: actions/setup-python@v4
27-
with:
28-
python-version: '3.9'
29-
- name: Install PlatformIO Core
30-
run: pip install --upgrade platformio
3127
- name: Build PlatformIO examples
3228
run: pio ci --lib="." --board=d1_mini
3329
env:
3430
PLATFORMIO_CI_SRC: ${{ matrix.example }}
3531

3632
build-for-esp32:
3733
runs-on: ubuntu-latest
34+
container: ghcr.io/bertmelis/pio-test-container
3835
strategy:
3936
matrix:
4037
example: [
@@ -45,43 +42,34 @@ jobs:
4542
examples/simple-read-GWG/simple-read-GWG.ino
4643
]
4744
steps:
48-
- uses: actions/checkout@v3
49-
- uses: actions/cache@v3
45+
- uses: actions/checkout@v4
46+
- uses: actions/cache@v4
5047
with:
5148
path: |
5249
~/.cache/pip
5350
~/.platformio/.cache
5451
key: ${{ runner.os }}-pio
55-
- uses: actions/setup-python@v4
56-
with:
57-
python-version: '3.9'
58-
- name: Install PlatformIO Core
59-
run: pip install --upgrade platformio
6052
- name: Build PlatformIO examples
6153
run: pio ci --lib="." --board=lolin32
6254
env:
6355
PLATFORMIO_CI_SRC: ${{ matrix.example }}
6456

6557
build-for-linux:
6658
runs-on: ubuntu-latest
59+
container: ghcr.io/bertmelis/pio-test-container
6760
strategy:
6861
matrix:
6962
example: [
7063
examples/linux/main.cpp
7164
]
7265
steps:
73-
- uses: actions/checkout@v3
74-
- uses: actions/cache@v3
66+
- uses: actions/checkout@v4
67+
- uses: actions/cache@v4
7568
with:
7669
path: |
7770
~/.cache/pip
7871
~/.platformio/.cache
7972
key: ${{ runner.os }}-pio
80-
- uses: actions/setup-python@v4
81-
with:
82-
python-version: '3.9'
83-
- name: Install PlatformIO Core
84-
run: pip install --upgrade platformio
8573
- name: Build PlatformIO examples
8674
run: pio ci --lib="." --project-conf="./examples/linux/platformio.ini"
8775
env:

.github/workflows/cppcheck.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,10 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
9-
8+
container: ghcr.io/bertmelis/pio-test-container
109
steps:
11-
- uses: actions/checkout@v3
12-
- name: Set up Python
13-
uses: actions/setup-python@v4
14-
with:
15-
python-version: '3.10'
16-
- name: Install dependencies
17-
run: |
18-
python -m pip install --upgrade pip
19-
pip install platformio
10+
- uses: actions/checkout@v4
2011
- name: Cppcheck
2112
run: |
2213
pio check --flags "--suppress=unusedFunction --inline-suppr" --skip-packages --fail-on-defect=low --fail-on-defect=medium --fail-on-defect=high

.github/workflows/cpplint.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
9-
8+
container: ghcr.io/bertmelis/pio-test-container
109
steps:
11-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1211
- name: Set up Python
13-
uses: actions/setup-python@v4
12+
uses: actions/setup-python@v5
1413
with:
1514
python-version: '3.10'
1615
- name: Install dependencies

0 commit comments

Comments
 (0)