Skip to content

Commit 6949b49

Browse files
committed
Faster builds -- better error messaging
1 parent bd60e9e commit 6949b49

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/build.yml

+23-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,34 @@ 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

ci/build-platformio.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ 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+
else
21+
pio run --environment ${FIB_PRODUCT}
22+
fi
23+

0 commit comments

Comments
 (0)