File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Compile ESP8266 Sketch
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ compile :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Checkout Repository
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Install Arduino CLI
20
+ run : |
21
+ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
22
+ echo "$(pwd)/bin" >> $GITHUB_PATH
23
+
24
+ - name : Configure Arduino CLI
25
+ run : |
26
+ cat <<EOF > .cli-config.yml
27
+ board_manager:
28
+ additional_urls:
29
+ - http://arduino.esp8266.com/stable/package_esp8266com_index.json
30
+ EOF
31
+ arduino-cli config init
32
+ arduino-cli core update-index
33
+ arduino-cli core install esp8266:esp8266 --config-file .cli-config.yml
34
+
35
+ - name : Install Required Libraries
36
+ run : |
37
+ arduino-cli lib install "Adafruit GFX Library"
38
+ arduino-cli lib install "Adafruit NeoMatrix"
39
+ arduino-cli lib install "Adafruit NeoPixel"
40
+ arduino-cli lib install "WiFiManager"
41
+ arduino-cli lib install "Adafruit BusIO"
42
+
43
+ - name : Compile Sketch
44
+ run : |
45
+ arduino-cli compile -v --fqbn esp8266:esp8266:nodemcuv2 digitalclock_esp8266.ino
Original file line number Diff line number Diff line change @@ -597,4 +597,4 @@ String leadingZero2Digit(int value){
597
597
}
598
598
msg += String (value);
599
599
return msg;
600
- }
600
+ }
You can’t perform that action at this time.
0 commit comments