Skip to content

Commit d52308e

Browse files
authored
Merge pull request jasoncoon#239 from henrygab/faster_ci
Faster builds -- better error messaging
2 parents bd60e9e + 390fbc0 commit d52308e

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

.github/workflows/build.yml

+27-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,40 @@ jobs:
1010
- name: Build with Arduino-CLI
1111
run: bash ci/build-arduino.sh
1212

13-
pio-build:
13+
pio-builds:
1414
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
product:
18+
- fastled_webserver
19+
- esp_thing
20+
- kraken64
21+
- chamaeleon64
22+
- 1628_rings
23+
- fib1024
24+
- fib512
25+
- fib256
26+
- fib128
27+
- fib64_full
28+
- fib64_mini
29+
- fib32
30+
platform:
31+
- d1_mini
32+
# - mini32 # When ESP32 is supported, one-line change to enable 2x product builds
33+
1534
steps:
1635
- name: Checkout
1736
uses: actions/checkout@v2
1837

19-
- name: Build with PlatformIO
38+
- name: Build
39+
env:
40+
FIB_PRODUCT: ${{ matrix.product }}__${{ matrix.platform }}
2041
run: bash ci/build-platformio.sh
2142

2243
- uses: actions/upload-artifact@v2
2344
with:
2445
name: firmware
25-
path: .pio/build/*/firmware.bin
46+
path: |
47+
.pio/build/*/firmware.bin
48+
.pio/build/*/firmware.elf
49+
.pio/build/*/littlefs.bin

ci/build-platformio.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@ python3 get-platformio.py
1515
pio platform install "espressif8266"
1616

1717
# Compile project
18-
pio run
18+
if [[ ! -v FIB_PRODUCT ]]; then
19+
pio run
20+
pio run --target buildfs
21+
else
22+
pio run --environment ${FIB_PRODUCT}
23+
pio run --target buildfs --environment ${FIB_PRODUCT}
24+
fi

0 commit comments

Comments
 (0)