-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ce0d75
commit f334d6c
Showing
7 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: PlatformIO CI | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
example: | ||
- examples/abstractingPinsPCF8574/abstractingPinsPCF8574.ino | ||
- examples/analogExample/analogExample.ino | ||
- examples/aw9523Example/aw9523Example.ino | ||
- examples/buttonRotaryEncoder/buttonRotaryEncoder.ino | ||
- examples/dfRobotAnalogInSwitches/dfRobotAnalogInSwitches.ino | ||
- examples/dfRobotRotaryEncoder/dfRobotRotaryEncoder.ino | ||
- examples/directionOnlyEncoder/directionOnlyEncoder.ino | ||
- examples/exampleShiftReg/exampleShiftReg.ino | ||
- examples/i2cEepromExample/i2cEepromExample.ino | ||
- examples/interruptSwitchEncoder8574/interruptSwitchEncoder8574.ino | ||
- examples/ioLogging/ioLogging.ino | ||
- examples/joystickRotaryEncoder/joystickRotaryEncoder.ino | ||
- examples/matrixKeyboard/matrixKeyboard.ino | ||
# MBED | ||
# - examples/mbed/mbedExample | ||
# - examples/mbed/mbedShiftReg | ||
- examples/mpr121Example/mpr121Example.ino | ||
- examples/multiIoExample/multiIoExample.ino | ||
- examples/rotaryEncoderLed23017/rotaryEncoderLed23017.ino | ||
# FIXME: Unknown type HardwareSPI | ||
# - examples/spiAndExtras/spiAndExtras.ino | ||
# STM | ||
# - examples/stm32HalTestRom/stm32HalTestRom.cpp | ||
- examples/timedBlink/timedBlink.ino | ||
- examples/touchScreen/touchScreen.ino | ||
include: | ||
# AVR | ||
- example: examples/avrEepromExample/avrEepromExample.ino | ||
board: megaatmega2560 | ||
# ESP | ||
- example: examples/arduinoEEPROMExample/arduinoEEPROMExample.ino | ||
board: [esp32dev, esp01_1m] | ||
- example: examples/esp32touchSwitches/esp32touchSwitches.ino | ||
board: esp32dev | ||
- example: examples/touchScreenFT6206Lib/touchScreenFT6206Lib.ino | ||
board: [esp32dev, esp01_1m] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.platformio/.cache | ||
key: ${{ runner.os }}-pio | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: Install PlatformIO Core | ||
run: pip install --upgrade platformio | ||
- name: Set Board Environment Variables | ||
run: | | ||
if [ -n "${{ matrix.board }}" ] && [ "${{ matrix.board }}" != "null" ]; then | ||
BOARD_ENVS="" | ||
if [ "${{ matrix.board }}" = "Array" ]; then | ||
# If matrix.board is an array | ||
for board in $(echo '${{ toJSON(matrix.board) }}' | jq -r '.[]'); do | ||
BOARD_ENVS="$BOARD_ENVS --environment $board" | ||
done | ||
else | ||
# If matrix.board is a single value | ||
BOARD_ENVS="--environment ${{ matrix.board }}" | ||
fi | ||
echo "BOARD_ENVS=$BOARD_ENVS" >> $GITHUB_ENV | ||
fi | ||
shell: bash | ||
- name: Build PlatformIO examples | ||
run: pio ci --lib "." --project-conf=platformio.ini $BOARD_ENVS | ||
env: | ||
PLATFORMIO_CI_SRC: ${{ matrix.example }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[env] | ||
framework = arduino | ||
|
||
lib_deps = | ||
davetcc/TaskManagerIO@^1.4.3 | ||
davetcc/SimpleCollections@^1.2.3 | ||
davetcc/LiquidCrystalIO@^1.4.3 | ||
adafruit/Adafruit GFX Library@^1.11.9 | ||
adafruit/Adafruit ILI9341@^1.6.1 | ||
adafruit/Adafruit FT6206 Library@^1.1.0 | ||
adafruit/Adafruit BusIO@^1.16.1 | ||
SPI | ||
Wire | ||
|
||
[env:megaatmega2560] | ||
platform = atmelavr | ||
board = megaatmega2560 | ||
|
||
[env:esp32dev] | ||
platform = espressif32 | ||
board = esp32dev | ||
|
||
[env:esp01_1m] | ||
platform = espressif8266 | ||
board = esp01_1m |