Use proper ci matrix

This commit is contained in:
Elliot Matson 2023-01-29 20:25:59 -06:00
parent 734816f5f3
commit f6ac9357c9
3 changed files with 9 additions and 38 deletions

View file

@ -18,7 +18,13 @@ jobs:
matrix: matrix:
example: example:
- "examples/PIO_TestPatterns" - "examples/PIO_TestPatterns"
no_gfx: ["", -DNO_GFX]
no_fast_functions: ["", -DFAST_FUNCTIONS]
no_cie1931: ["", -DNO_CIE1931]
virtual_panel: ["", -DVIRTUAL_PANEL]
env:
PLATFORMIO_BUILD_FLAGS: ${{ matrix.no_gfx }} ${{ matrix.no_fast_functions }} ${{ matrix.no_cie1931 }} ${{ matrix.virtual_panel
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Cache pip - name: Cache pip

View file

@ -18,41 +18,6 @@ upload_speed = 460800
monitor_speed = 115200 monitor_speed = 115200
monitor_filters = esp32_exception_decoder monitor_filters = esp32_exception_decoder
[env:esp32]
build_flags =
${env.build_flags}
-DTEST_FASTLINES
[env:debug]
build_flags =
${env.build_flags}
-DTEST_FASTLINES
-DSERIAL_DEBUG
; build without GFX functions
[env:minimal]
build_flags =
${env.build_flags}
-DNO_GFX
-DNO_FAST_FUNCTIONS
-DNO_CIE1931
; Virtual Panel test
[env:vpane]
build_flags =
${env.build_flags}
-DNO_FAST_FUNCTIONS
-DVIRTUAL_PANE
; Virtual Panel test
[env:vpane_minimal]
build_flags =
${env.build_flags}
-DVIRTUAL_PANE
-DNO_GFX
-DNO_FAST_FUNCTIONS
-DNO_CIE1931
; PIO CI can't handle IDF git modules properly (yet) ; PIO CI can't handle IDF git modules properly (yet)
;[env:idfarduino] ;[env:idfarduino]
;platform = espressif32 ;platform = espressif32

View file

@ -241,7 +241,7 @@ void loop(){
delay(PATTERN_DELAY); delay(PATTERN_DELAY);
// //
#ifdef TEST_FASTLINES #ifndef NO_FAST_FUNCTIONS
// Fillrate for fillRect() function // Fillrate for fillRect() function
Serial.print("Estimating fullscreen fillrate with fillRect() time: "); Serial.print("Estimating fullscreen fillrate with fillRect() time: ");
t1 = micros(); t1 = micros();
@ -293,7 +293,7 @@ void loop(){
Serial.printf("%lu us, %u ticks\n", t2, ccount1); Serial.printf("%lu us, %u ticks\n", t2, ccount1);
delay(PATTERN_DELAY); delay(PATTERN_DELAY);
#ifdef TEST_FASTLINES #ifndef NO_FAST_FUNCTIONS
Serial.println("Estimating V-lines with vlineDMA(): "); // Serial.println("Estimating V-lines with vlineDMA(): "); //
matrix->fillScreen(0); matrix->fillScreen(0);
color2 = random8(); color2 = random8();
@ -347,7 +347,7 @@ void loop(){
Serial.printf("%lu us, %u ticks\n", t2, ccount1); Serial.printf("%lu us, %u ticks\n", t2, ccount1);
delay(PATTERN_DELAY); delay(PATTERN_DELAY);
#ifdef TEST_FASTLINES #ifndef NO_FAST_FUNCTIONS
Serial.println("Estimating H-lines with hlineDMA(): "); Serial.println("Estimating H-lines with hlineDMA(): ");
matrix->fillScreen(0); matrix->fillScreen(0);
color2 = random8(); color2 = random8();