Skip to content

Commit

Permalink
use matrix strategy for GitHub Action to test build for all supported…
Browse files Browse the repository at this point in the history
… models
  • Loading branch information
jnsbyr committed Aug 4, 2023
1 parent f3eafe0 commit a1956e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Arduino Sketch [D1 mini, SBH-20]
name: Build Arduino Sketch [D1 mini, SBH-20 and SJB-HS]

on: [push, pull_request]

Expand All @@ -7,12 +7,17 @@ jobs:
strategy:
matrix:
arduino-platform: [ "esp8266:[email protected]" ]
model: [ "SB-H20", "SJB-HS" ]
include:
- arduino-platform: "esp8266:[email protected]"
fqbn: "esp8266:esp8266:d1_mini:xtal=160,vt=iram,exception=enabled,ssl=basic,eesz=4M1M,ip=lm2f,dbg=Disabled,lvl=None____"
sketch: "esp8266-intexsbh20.ino"
install-options: "--additional-urls \"http://arduino.esp8266.com/stable/package_esp8266com_index.json\""
- model: "SB-H20"
compiler-options: "--warnings more --build-property compiler.cpp.extra_flags=\"-D MODEL_SB_H20\""
- model: "SJB-HS"
compiler-options: "--warnings more --build-property compiler.cpp.extra_flags=\"-D MODEL_SJB_HS\""
max-parallel: 2

steps:
- name: Checkout
Expand Down

0 comments on commit a1956e1

Please sign in to comment.