Skip to content

Commit 5a84fd1

Browse files
committed
Enable GitHub Actions CI/CD
1 parent 7c0199f commit 5a84fd1

3 files changed

Lines changed: 61 additions & 0 deletions

File tree

.github/workflows/platformio.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: PlatformIO CI
2+
on: [push]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
example:
10+
- examples/eventHandling/eventHandling.ino
11+
- examples/halloween/halloween.ino
12+
- examples/longSchedule/longSchedule.ino
13+
- examples/marshalInterrupt/marshalInterrupt.ino
14+
# MBED
15+
# - examples/mbed5NonRtos
16+
# - examples/mbedRtos
17+
- examples/reentrantLocking/reentrantLocking.ino
18+
- examples/simpleTasks/simpleTasks.ino
19+
- examples/taskManagement/taskManagement.ino
20+
- examples/tasksUsingExecutable/tasksUsingExecutable.ino
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/cache@v4
25+
with:
26+
path: |
27+
~/.cache/pip
28+
~/.platformio/.cache
29+
key: ${{ runner.os }}-pio
30+
- uses: actions/setup-python@v5
31+
with:
32+
python-version: '3.12'
33+
- name: Install PlatformIO Core
34+
run: pip install --upgrade platformio
35+
36+
- name: Build PlatformIO examples
37+
run: pio ci --lib "." --project-conf=platformio.ini
38+
env:
39+
PLATFORMIO_CI_SRC: ${{ matrix.example }}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
## TaskManagerIO scheduling and event based library for Arudino and mbed
2+
[![PlatformIO](https://github.com/davetcc/TaskManagerIO/actions/workflows/platformio.yml/badge.svg)](https://github.com/davetcc/TaskManagerIO/actions/workflows/platformio.yml)
3+
[![License: Apache 2.0](https://img.shields.io/badge/license-Apache--2.0-green.svg)](https://github.com/davetcc/TaskManagerIO/blob/master/LICENSE)
4+
[![GitHub release](https://img.shields.io/github/release/davetcc/TaskManagerIO.svg?maxAge=3600)](https://github.com/davetcc/TaskManagerIO/releases)
5+
[![davetcc](https://img.shields.io/badge/davetcc-dev-blue.svg)](https://github.com/davetcc)
6+
[![JSC electronics](https://img.shields.io/badge/JSC-electronics-green.svg)](https://github.com/jsc-electronics)
27

38
Dave Cherry / TheCodersCorner.com made this library available for you to use. It takes me significant effort to keep all my libraries current and working on a wide range of boards. Please consider making at least a one off donation via the sponsor button if you find it useful. In forks, please keep text to here intact.
49

platformio.ini

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[env]
2+
framework = arduino
3+
4+
lib_deps =
5+
davetcc/IoAbstraction@^4.0.2
6+
7+
[env:megaatmega2560]
8+
platform = atmelavr
9+
board = megaatmega2560
10+
11+
[env:esp32dev]
12+
platform = espressif32
13+
board = esp32dev
14+
15+
[env:esp01_1m]
16+
platform = espressif8266
17+
board = esp01_1m

0 commit comments

Comments
 (0)