File tree 2 files changed +24
-6
lines changed
2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,6 @@ jobs:
111
111
- name : Build Sketches
112
112
env :
113
113
ESP8266_ARDUINO_BUILDER : " arduino"
114
- ESP8266_ARDUINO_HARDWARE : ${HOME}/Documents/Arduino/hardware
115
- ESP8266_ARDUINO_LIBRARIES : ${HOME}/Documents/Arduino/libraries
116
114
ESP8266_ARDUINO_LWIP : ${{ matrix.lwip }}
117
115
run : |
118
116
bash ./tests/build.sh 8 ${{ matrix.chunk }}
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ # expect to have git available
3
4
root=$( git rev-parse --show-toplevel)
4
5
6
+ # general configuration related to the builder itself
5
7
ESP8266_ARDUINO_BUILD_DIR=${ESP8266_ARDUINO_BUILD_DIR:- $root }
6
8
ESP8266_ARDUINO_BUILDER=${ESP8266_ARDUINO_BUILDER:- arduino}
7
9
ESP8266_ARDUINO_PRESERVE_CACHE=${ESP8266_ARDUINO_PRESERVE_CACHE:- }
8
10
9
- ESP8266_ARDUINO_CLI=${ESP8266_ARDUINO_CLI:- $HOME / .local/ bin/ arduino-cli}
10
- ESP8266_ARDUINO_HARDWARE=${ESP8266_ARDUINO_HARDWARE:- $HOME / Arduino/ hardware}
11
- ESP8266_ARDUINO_LIBRARIES=${ESP8266_ARDUINO_LIBRARIES:- $HOME / Arduino/ libraries}
12
-
11
+ # sketch build options
13
12
ESP8266_ARDUINO_DEBUG=${ESP8266_ARDUINO_DEBUG:- nodebug}
14
13
ESP8266_ARDUINO_LWIP=${ESP8266_ARDUINO_LWIP:- default}
15
14
ESP8266_ARDUINO_SKETCHES=${ESP8266_ARDUINO_SKETCHES:- }
16
15
16
+ ESP8266_ARDUINO_CLI=${ESP8266_ARDUINO_CLI:- $HOME / .local/ bin/ arduino-cli}
17
+
18
+ # ref. https://arduino.github.io/arduino-cli/1.2/configuration/#default-directories
19
+ case " ${RUNNER_OS-} " in
20
+ " Linux" )
21
+ ESP8266_ARDUINO_HARDWARE=${ESP8266_ARDUINO_HARDWARE:- $HOME / Arduino/ hardware}
22
+ ESP8266_ARDUINO_LIBRARIES=${ESP8266_ARDUINO_LIBRARIES:- $HOME / Arduino/ libraries}
23
+ ;;
24
+ " macOS" )
25
+ ESP8266_ARDUINO_HARDWARE=${ESP8266_ARDUINO_HARDWARE:- $HOME / Documents/ Arduino/ hardware}
26
+ ESP8266_ARDUINO_LIBRARIES=${ESP8266_ARDUINO_LIBRARIES:- $HOME / Documents/ Arduino/ libraries}
27
+ ;;
28
+ " Windows" )
29
+ ESP8266_ARDUINO_HARDWARE=${ESP8266_ARDUINO_HARDWARE:- $HOME / Documents/ Arduino/ hardware}
30
+ ESP8266_ARDUINO_LIBRARIES=${ESP8266_ARDUINO_LIBRARIES:- $HOME / Documents/ Arduino/ libraries}
31
+ ;;
32
+ * )
33
+ echo ' Unknown ${RUNNER_OS} = "' ${RUNNER_OS} ' "'
34
+ exit 2
35
+ esac
36
+
17
37
source " $root /tests/common.sh"
18
38
19
39
cmd=${0##*/ }
You can’t perform that action at this time.
0 commit comments