bugfix #7 #15
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
name: PlatformIO CI | |
on: [push] | |
# see e.g. https://cgrotz.github.io/2020-08-24-esp32_ci_cd_part2/ | |
jobs: | |
build: | |
#runs-on: ubuntu-latest | |
runs-on: windows-latest | |
steps: | |
# Prepare environment | |
- uses: actions/checkout@main | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-pio | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
# Build ESP code | |
- name: Build PlatformIO Project ESP32 | |
working-directory: ./ESP32 | |
run: | | |
pio system info | |
pio run --environment esp32 | |
pio run --environment esp32s3usbotg | |
pio run --environment esp32-speedcrafter | |
# zip plugin binaries | |
- name: ZIP files | |
run: | | |
7z a "./Helper/zip/esp32.zip @Helper/zip/filelist_esp32.txt" | |
7z a ./Helper/zip/esp32s3.zip @Helper/zip/filelist_esp32s3.txt | |
7z a./Helper/zip/esp32_speedcrafter.zip @Helper/zip/filelist_esp32_speedcrafter.txt | |
# Publish as build artifact | |
- name: Attach artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: firmware_esp32 | |
path: | | |
./Helper/zip/esp32.zip | |