Update workflow, bump version #28
Workflow file for this run
This file contains hidden or 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] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/pip | |
| ~/.platformio/.cache | |
| key: ${{ runner.os }}-pio | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install PlatformIO Core | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install --upgrade platformio | |
| pip install --upgrade intelhex | |
| - name: Build PlatformIO Project D1 | |
| run: pio ci -c ./examples/DBTFT/platformio.ini -e d1_mini --build-dir /tmp/pio-build --keep-build-dir ./examples/DBTFT/src | |
| - name: Copy ESP8266 firmware | |
| run: cp /tmp/pio-build/.pio/build/d1_mini/firmware.bin /tmp/ESP8266-ILI9341.bin | |
| - name: Upload esp8266 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ESP8266-ILI9341 | |
| path: /tmp/ESP8266-ILI9341.bin | |
| - name: Build PlatformIO Project CYD 9341 | |
| run: pio ci -c ./examples/DBTFT/platformio.ini -e 2432s028r --build-dir /tmp/pio-build --keep-build-dir ./examples/DBTFT/src | |
| - name: Copy CYD-ILI9341 firmware | |
| run: cp /tmp/pio-build/.pio/build/2432s028r/firmware.bin /tmp/CYD-ILI9341.bin | |
| - name: Upload CYD-ILI9341 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CYD-ILI9341 | |
| path: /tmp/CYD-ILI9341.bin | |
| - name: Build PlatformIO Project CYD 7798 | |
| run: pio ci -c ./examples/DBTFT/platformio.ini -e 2432s028r_dualusb --build-dir /tmp/pio-build --keep-build-dir ./examples/DBTFT/src | |
| - name: Copy CYD-ST7798 firmware | |
| run: cp /tmp/pio-build/.pio/build/2432s028r_dualusb/firmware.bin /tmp/CYD-ST7798.bin | |
| - name: Upload CYD-ST7798 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CYD-ST7798 | |
| path: /tmp/CYD-ST7798.bin | |
| - name: Attach binaries to release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| /tmp/ESP8266-ILI9341.bin | |
| /tmp/CYD-ILI9341.bin | |
| /tmp/CYD-ST7798.bin |