Skip to content

Commit

Permalink
added platformio CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobozo committed Jan 10, 2024
1 parent 23353c0 commit 9d54448
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 1 deletion.
67 changes: 67 additions & 0 deletions .github/workflows/PlatformioBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
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
- 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 }}
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 9d54448

Please sign in to comment.