diff --git a/.github/workflows/PlatformioBuild.yml b/.github/workflows/PlatformioBuild.yml new file mode 100644 index 0000000..1f660ab --- /dev/null +++ b/.github/workflows/PlatformioBuild.yml @@ -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 }} + diff --git a/library.properties b/library.properties index bcf404a..8f7da64 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ESP32-targz -version=1.2.0 +version=1.2.1 author=tobozo maintainer=tobozo sentence=A library to unpack/uncompress tar, gz, and tar.gz files on ESP32 and ESP8266