Skip to content

Commit

Permalink
1.2.1 (#71)
Browse files Browse the repository at this point in the history
* added platformio CI tests
  • Loading branch information
tobozo committed Jan 10, 2024
1 parent d476771 commit a99c36e
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: LibraryBuild
name: ArduinoBuild
on:
push: # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
paths:
- '**.ino'
- '**.cpp'
- '**.h'
- '**LibraryBuild.yml'
- '**ArduinoBuild.yml.yml'
pull_request:
workflow_dispatch:

jobs:
build:
name: ${{ matrix.arduino-boards-fqbn }} - test compiling examples
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/PlatformioBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: PlatformIOBuild

env:
PROJECT_DIR: examples/Test_platformio

on:
push:
paths:
- '**.ino'
- '**.cpp'
- '**.hpp'
- '**.h'
- '**.c'
- '**PlatformioBuild.yml'
pull_request:
workflow_dispatch:

jobs:
build:
name: ${{ matrix.pio-env }}

runs-on: ubuntu-latest

strategy:
matrix:
pio-env:
- esp8266
- esp32
- esp32s3
- pico

fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO

run: |
cd ${{ env.PROJECT_DIR }}
pio pkg install -e ${{ matrix.pio-env }} --no-save --library file://$(realpath ../../)
pio run -e ${{ matrix.pio-env }}
24 changes: 19 additions & 5 deletions examples/Test_platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,26 @@
; https://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = nodemcu
default_envs = esp8266

[env]
framework = arduino
lib_deps = ESP32-targz

[env:nodemcu]
[env:esp8266]
platform = espressif8266
board = nodemcu
framework = arduino
lib_deps =
https://github.com/tobozo/ESP32-targz#1.1.8


[env:esp32]
platform = espressif32
board = esp32dev

[env:esp32s3]
platform = espressif32
board = esp32-s3-devkitc-1

[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
board_build.core = earlephilhower
7 changes: 6 additions & 1 deletion examples/Test_platformio/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#define DEST_FS_USES_SD

#include <ESP32-targz.h>

void setup()
{

if( !tarGzFS.begin() ) {
Serial.println("Could not start filesystem");
while(1) yield();
}
}


Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP32-targz
version=1.2.0
version=1.2.1
author=tobozo <[email protected]>
maintainer=tobozo <[email protected]>
sentence=A library to unpack/uncompress tar, gz, and tar.gz files on ESP32 and ESP8266
Expand Down

0 comments on commit a99c36e

Please sign in to comment.