Skip to content

Commit eec6fca

Browse files
committed
Refactor CI workflow and replace DistinctExample with Distinct example for improved clarity and consistency
1 parent 4992615 commit eec6fca

2 files changed

Lines changed: 11 additions & 25 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,21 @@ jobs:
44
build:
55
name: Build Examples
66
runs-on: ubuntu-latest
7-
env:
8-
pio-env: 'esp32dev'
9-
strategy:
10-
matrix:
11-
example: [
12-
'Blink/Blink.cpp',
13-
'Do/Do.cpp',
14-
'FromArray/FromArray.cpp',
15-
'FromProperty/FromProperty.cpp',
16-
'FromSerialPort/FromSerialPort.cpp',
17-
'FromString/FromString.cpp',
18-
'GlobalDefined/GlobalDefined.cpp',
19-
'Reduce/Reduce.cpp',
20-
'ThrottleExample/ThrottleExample.cpp',
21-
'UltrasonicExample/UltrasonicExample.cpp',
22-
'AccelerometerExample/AccelerometerExample.cpp',
23-
'RotaryEncoderExample/RotaryEncoderExample.cpp',
24-
'PIDTemperatureControl/PIDTemperatureControl.cpp',
25-
'PIDMotorSpeedControl/PIDMotorSpeedControl.cpp',
26-
'DistinctExample/DistinctExample.cpp'
27-
]
287
steps:
29-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v4
9+
with:
10+
submodules: recursive
11+
- uses: actions/cache@v4
12+
with:
13+
path: |
14+
~/.cache/pip
15+
~/.platformio/.cache
16+
key: ${{ runner.os }}-pio
3017
- name: Set up python
31-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
3219
with:
3320
python-version: '3.x'
34-
architecture: 'x64'
3521
- name: Install PlatformIO
3622
run: python -m pip install platformio
3723
- name: Build firmware
38-
run: pio ci --lib="." --board ${{env.pio-env}} "examples/${{matrix.example}}"
24+
run: pio run
File renamed without changes.

0 commit comments

Comments
 (0)