File tree Expand file tree Collapse file tree 6 files changed +42
-9
lines changed Expand file tree Collapse file tree 6 files changed +42
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ REM Windows build script
2
2
3
3
set SMING_HOME = %APPVEYOR_BUILD_FOLDER% \Sming
4
4
5
- if " %SMING_ARCH% " == " Esp8266" set ESP_HOME = c:\Espressif
5
+ if " %build_compiler% " == " udk" set ESP_HOME = %UDK_ROOT%
6
+ if " %build_compiler% " == " eqt" set ESP_HOME = %EQT_ROOT%
6
7
7
8
cd %SMING_HOME%
8
9
gcc -v
Original file line number Diff line number Diff line change @@ -8,8 +8,15 @@ goto :%SMING_ARCH%
8
8
9
9
:Esp8266
10
10
11
+ REM Old toolchain
11
12
choco install esp8266-udk --source https://www.myget.org/F/sming/ -y --no-progress
12
13
14
+ REM New toolchain
15
+ mkdir %EQT_ROOT%
16
+ set TOOLCHAIN = x86_64-w64-mingw32.xtensa-lx106-elf-dd9f9a2.1569802152.zip
17
+ curl -LO https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.0.0-gnu2/%TOOLCHAIN%
18
+ 7z -o%EQT_ROOT% x %TOOLCHAIN%
19
+
13
20
goto :EOF
14
21
15
22
Original file line number Diff line number Diff line change @@ -23,10 +23,23 @@ jobs:
23
23
- graphviz-dev
24
24
- xmlstarlet
25
25
- jq
26
- env : SMING_ARCH=Host
26
+ env :
27
+ - SMING_ARCH=Host
28
+
27
29
- stage : build
28
30
os : linux
29
- env : SMING_ARCH=Esp8266 SDK_VERSION=3.0.1
31
+ env :
32
+ - SMING_ARCH=Esp8266
33
+ - SDK_VERSION=3.0.1
34
+ - ESP_HOME=$TRAVIS_BUILD_DIR/opt/esp-alt-sdk
35
+
36
+ - stage : build c++17
37
+ os : linux
38
+ env :
39
+ - SMING_ARCH=Esp8266
40
+ - SDK_VERSION=3.0.1
41
+ - ESP_HOME=$TRAVIS_BUILD_DIR/opt/esp-quick-toolchain
42
+
30
43
git :
31
44
submodules : false
32
45
addons :
Original file line number Diff line number Diff line change 27
27
28
28
# Setup ARCH SDK paths
29
29
if [ " $SMING_ARCH " == " Esp8266" ]; then
30
- export ESP_HOME=$TRAVIS_BUILD_DIR /opt/esp-alt-sdk
31
30
export PATH=$PATH :$ESP_HOME /xtensa-lx106-elf/bin:$ESP_HOME /utils/
32
31
fi
33
32
Original file line number Diff line number Diff line change @@ -9,11 +9,17 @@ if [ "$TRAVIS_BUILD_STAGE_NAME" == "Test" ]; then
9
9
fi
10
10
11
11
if [ " $SMING_ARCH " == " Esp8266" ]; then
12
- mkdir -p $TRAVIS_BUILD_DIR /opt/esp-alt-sdk
13
-
14
12
if [ " $TRAVIS_OS_NAME " == " linux" ]; then
15
- wget --no-verbose https://github.com/nodemcu/nodemcu-firmware/raw/2d958750b56fc60297f564b4ec303e47928b5927/tools/esp-open-sdk.tar.xz
16
- tar -Jxvf esp-open-sdk.tar.xz; ln -s $( pwd) /esp-open-sdk/xtensa-lx106-elf $TRAVIS_BUILD_DIR /opt/esp-alt-sdk/.
13
+ # Old toolchain
14
+ mkdir -p $TRAVIS_BUILD_DIR /opt/esp-alt-sdk
15
+ wget --no-verbose https://github.com/nodemcu/nodemcu-firmware/raw/2d958750b56fc60297f564b4ec303e47928b5927/tools/esp-open-sdk.tar.xz
16
+ tar -Jxvf esp-open-sdk.tar.xz; ln -s $( pwd) /esp-open-sdk/xtensa-lx106-elf $TRAVIS_BUILD_DIR /opt/esp-alt-sdk/.
17
+
18
+ # New toolchain
19
+ TOOLCHAIN=x86_64-linux-gnu.xtensa-lx106-elf-dd9f9a2.1569802152.tar.gz
20
+ wget --no-verbose https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.0.0-gnu2/$TOOLCHAIN
21
+ mkdir -p opt/esp-quick-toolchain
22
+ tar -zxf $TOOLCHAIN -C opt/esp-quick-toolchain --totals
17
23
fi
18
24
19
25
fi # Esp8266
Original file line number Diff line number Diff line change @@ -3,13 +3,20 @@ os: Windows Server 2012 R2
3
3
environment :
4
4
PATH : C:\MinGW\msys\1.0\bin;C:\MinGW\bin;C:\Python27\scripts;%PATH%
5
5
SDK_BUILD : 258
6
+ UDK_ROOT : C:\Espressif
7
+ EQT_ROOT : C:\esp-quick-toolchain
6
8
matrix :
7
9
- build_platform : " x86"
8
10
build_compiler : " mingw"
9
11
SMING_ARCH : Host
10
12
11
13
- build_platform : " x86"
12
- build_compiler : " mingw"
14
+ build_compiler : " udk"
15
+ SMING_ARCH : Esp8266
16
+ SDK_VERSION : 3.0.1
17
+
18
+ - build_platform : " x86"
19
+ build_compiler : " eqt"
13
20
SMING_ARCH : Esp8266
14
21
SDK_VERSION : 3.0.1
15
22
You can’t perform that action at this time.
0 commit comments