Skip to content

Bump actions/checkout from 6 to 7 #109

Bump actions/checkout from 6 to 7

Bump actions/checkout from 6 to 7 #109

Workflow file for this run

name: PlatformIO Build All
on:
push:
workflow_dispatch:
jobs:
build:
name: "${{ matrix.group }}"
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
include:
- group: ModernESP_C2
boards: "esp32c2"
cache_extra: ".pio"
- group: ModernESP_C3_C5_C6
boards: "esp32c3 esp32c5 esp32c6"
cache_extra: ""
- group: ModernESP_S3
boards: "esp32s3"
cache_extra: ""
- group: ClassicESP
boards: "esp32 esp32s2 esp32-eth01 esp8266"
cache_extra: ""
- group: CustomBoards
boards: "esp32-GLEDOPTO_GL_C_616WL esp32-GLEDOPTO_GL_C_615WL esp32-DOMRAEM_WLE_ADM esp32-IOTORERO_ETHERNET"
cache_extra: ""
- group: Pico
boards: "pico pico2"
cache_extra: ""
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: "Cache PlatformIO - ${{ matrix.group }}"
uses: actions/cache@v5
with:
path: |
~/.platformio/packages
~/.platformio/platforms
.ccache
${{ matrix.cache_extra }}
key: pio-${{ matrix.group }}-${{ hashFiles('platformio.ini') }}
restore-keys: |
pio-${{ matrix.group }}-
- name: Install PlatformIO + esptool + ccache
run: |
sudo apt update
sudo apt install ccache
python -m pip install --upgrade pip
pip install --upgrade platformio esptool
- name: Build ${{ matrix.group }}
run: |
ENVS="${{ matrix.boards }}"
CMD="pio run -j 2"
for env in $ENVS; do
CMD="$CMD -e $env"
done
eval "$CMD"
- name: "Upload Artifacts - ${{ matrix.group }}"
uses: actions/upload-artifact@v7
with:
name: Hyperk-Firmware-${{ matrix.group }}
path: release/
if-no-files-found: error
- name: Generate Job Summary
run: |
echo "**Boards:** ${{ matrix.boards }}" >> $GITHUB_STEP_SUMMARY
release:
needs: build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all firmware artifacts
uses: actions/download-artifact@v8
with:
pattern: Hyperk-Firmware-*
path: release
merge-multiple: true
- name: Create Pre-release
uses: softprops/action-gh-release@v3
with:
files: release/*
generate_release_notes: true
draft: true
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}