Skip to content

Commit

Permalink
Merge pull request jasoncoon#239 from henrygab/faster_ci
Browse files Browse the repository at this point in the history
Faster builds -- better error messaging
  • Loading branch information
henrygab authored Dec 20, 2021
2 parents bd60e9e + 390fbc0 commit d52308e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
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

0 comments on commit d52308e

Please sign in to comment.