Skip to content

Faster builds -- better error messaging #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,40 @@ jobs:
- name: Build with Arduino-CLI
run: bash ci/build-arduino.sh

pio-build:
pio-builds:
runs-on: ubuntu-latest
strategy:
matrix:
product:
- fastled_webserver
- esp_thing
- kraken64
- chamaeleon64
- 1628_rings
- fib1024
- fib512
- fib256
- fib128
- fib64_full
- fib64_mini
- fib32
platform:
- d1_mini
# - mini32 # When ESP32 is supported, one-line change to enable 2x product builds

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build with PlatformIO
- name: Build
env:
FIB_PRODUCT: ${{ matrix.product }}__${{ matrix.platform }}
run: bash ci/build-platformio.sh

- uses: actions/upload-artifact@v2
with:
name: firmware
path: .pio/build/*/firmware.bin
path: |
.pio/build/*/firmware.bin
.pio/build/*/firmware.elf
.pio/build/*/littlefs.bin
8 changes: 7 additions & 1 deletion ci/build-platformio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@ python3 get-platformio.py
pio platform install "espressif8266"

# Compile project
pio run
if [[ ! -v FIB_PRODUCT ]]; then
pio run
pio run --target buildfs
else
pio run --environment ${FIB_PRODUCT}
pio run --target buildfs --environment ${FIB_PRODUCT}
fi