@@ -37,13 +37,13 @@ jobs:
37
37
echo -en "matrix=" >> $GITHUB_OUTPUT
38
38
echo -en "[" >> $GITHUB_OUTPUT
39
39
40
- get_sketches_json_matrix arduino $GITHUB_WORKSPACE/examples/esp8266_pico esp8266 1.8.19 esp8266com :esp8266:generic:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=80,FlashMode=qio,eesz=4M2M,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Serial1,lvl=SSL,wipe=none,baud=115200 >> $GITHUB_OUTPUT
40
+ get_sketches_json_matrix arduino $GITHUB_WORKSPACE/examples/esp8266_pico esp8266 0.35.0 esp8266 :esp8266:generic:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=80,FlashMode=qio,eesz=4M2M,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Serial1,lvl=SSL,wipe=none,baud=115200 >> $GITHUB_OUTPUT
41
41
echo -en "," >> $GITHUB_OUTPUT
42
42
43
- get_sketches_json_matrix arduino $GITHUB_WORKSPACE/examples/esp8266_pico esp8266 1.8.19 esp8266com :esp8266:generic:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=80,FlashMode=qio,eesz=4M2M,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 >> $GITHUB_OUTPUT
43
+ get_sketches_json_matrix arduino $GITHUB_WORKSPACE/examples/esp8266_pico esp8266 0.35.0 esp8266 :esp8266:generic:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=80,FlashMode=qio,eesz=4M2M,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 >> $GITHUB_OUTPUT
44
44
echo -en "," >> $GITHUB_OUTPUT
45
45
46
- get_sketches_json_matrix arduino $GITHUB_WORKSPACE/examples/esp32 esp32 1.8.19 espressif :esp32:esp32:FlashFreq=80 >> $GITHUB_OUTPUT
46
+ get_sketches_json_matrix arduino $GITHUB_WORKSPACE/examples/esp32 esp32 0.35.0 esp32 :esp32:esp32:FlashFreq=80 >> $GITHUB_OUTPUT
47
47
48
48
echo -en "]" >> $GITHUB_OUTPUT
49
49
echo >> $GITHUB_OUTPUT
55
55
strategy :
56
56
fail-fast : false
57
57
matrix :
58
- IDE_VERSION : [1.8.19 ]
58
+ IDE_VERSION : [0.35.0 ]
59
59
env :
60
60
IDE_VERSION : ${{ matrix.IDE_VERSION }}
61
+ ARDUINO_DIRECTORIES_DATA : /home/runner/arduino_ide
61
62
62
63
steps :
63
64
- uses : actions/checkout@v2
@@ -74,14 +75,15 @@ jobs:
74
75
path : |
75
76
/home/runner/arduino_ide
76
77
/home/runner/Arduino
77
- key : ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ matrix.IDE_VERSION }}
78
+ key : ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ matrix.IDE_VERSION }}-cli
78
79
79
80
- name : download IDE
80
81
if : steps.cache_all.outputs.cache-hit != 'true'
81
82
run : |
82
- wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz -q
83
- tar xf arduino-$IDE_VERSION-linux64.tar.xz
84
- mv arduino-$IDE_VERSION $HOME/arduino_ide
83
+ wget https://github.com/arduino/arduino-cli/releases/download/v$IDE_VERSION/arduino-cli$IDE_VERSION_Linux_64bit.tar.gz -q
84
+ tar xf arduino-cli_$IDE_VERSION_Linux_64bit.tar.gz
85
+ mkdir -p $ARDUINO_DIRECTORIES_DATA
86
+ mv arduino-cli $ARDUINO_DIRECTORIES_DATA/
85
87
86
88
- name : download ArduinoJson
87
89
if : steps.cache_all.outputs.cache-hit != 'true'
@@ -91,17 +93,12 @@ jobs:
91
93
unzip 6.x.zip
92
94
mv ArduinoJson-6.x $HOME/Arduino/libraries/ArduinoJson
93
95
94
- - name : download esp8266
96
+ - name : download cores
95
97
if : steps.cache_all.outputs.cache-hit != 'true'
96
98
run : |
99
+ export PATH="$ARDUINO_DIRECTORIES_DATA:$PATH"
97
100
source $GITHUB_WORKSPACE/travis/common.sh
98
- get_core esp8266
99
-
100
- - name : download esp32
101
- if : steps.cache_all.outputs.cache-hit != 'true'
102
- run : |
103
- source $GITHUB_WORKSPACE/travis/common.sh
104
- get_core esp32
101
+ get_core_cli
105
102
106
103
build :
107
104
needs : [prepare_ide, prepare_example_json]
@@ -115,6 +112,7 @@ jobs:
115
112
BOARD : ${{ matrix.board }}
116
113
IDE_VERSION : ${{ matrix.ideversion }}
117
114
SKETCH : ${{ matrix.sketch }}
115
+ ARDUINO_DIRECTORIES_DATA : /home/runner/arduino_ide
118
116
119
117
# Steps represent a sequence of tasks that will be executed as part of the job
120
118
steps :
@@ -136,7 +134,7 @@ jobs:
136
134
path : |
137
135
/home/runner/arduino_ide
138
136
/home/runner/Arduino
139
- key : ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ matrix.ideversion }}
137
+ key : ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ matrix.ideversion }}-cli
140
138
141
139
- name : install python serial
142
140
if : matrix.cpu == 'esp32'
@@ -145,32 +143,16 @@ jobs:
145
143
sudo pip install pyserial
146
144
# sudo apt install python-is-python3
147
145
148
- - name : start DISPLAY
149
- run : |
150
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16
151
- export DISPLAY=:1.0
152
- sleep 3
153
-
154
146
- name : test IDE
155
147
run : |
156
- export PATH="$HOME/arduino_ide :$PATH"
157
- which arduino
148
+ export PATH="$ARDUINO_DIRECTORIES_DATA :$PATH"
149
+ which arduino-cli
158
150
159
151
- name : copy code
160
152
run : |
161
153
mkdir -p $HOME/Arduino/libraries/
162
154
cp -r $GITHUB_WORKSPACE $HOME/Arduino/libraries/arduinoWebSockets
163
155
164
- - name : config IDE
165
- run : |
166
- set +x
167
- export DISPLAY=:1.0
168
- export PATH="$HOME/arduino_ide:$PATH"
169
- arduino --board $BOARD --save-prefs
170
- arduino --pref update.check=false --pref build.verbose=false --pref cache.enable=true --pref compiler.cache_core=true --pref compiler.warning_level=default --save-prefs
171
- arduino --get-pref sketchbook.path
172
- arduino --get-pref
173
-
174
156
- name : build example
175
157
timeout-minutes : 20
176
158
run : |
@@ -179,7 +161,7 @@ jobs:
179
161
export PATH="$HOME/arduino_ide:$PATH"
180
162
source $GITHUB_WORKSPACE/travis/common.sh
181
163
cd $GITHUB_WORKSPACE
182
- build_sketch arduino $SKETCH
164
+ build_sketch_cli " $SKETCH" "$BOARD"
183
165
184
166
done :
185
167
needs : [prepare_ide, prepare_example_json, build, check_version_files]
0 commit comments