File tree Expand file tree Collapse file tree 2 files changed +12
-15
lines changed Expand file tree Collapse file tree 2 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -81,27 +81,24 @@ jobs:
81
81
with :
82
82
submodules : true
83
83
84
- - uses : msys2/setup-msys2@v2
85
- with :
86
- update : true
87
- cache : true
88
- install : >-
89
- make
90
- gcc
91
- python
92
- python-pip
93
- unzip
84
+ - name : Download ESP32 MSYS2 Toolchain
85
+ run : |
86
+ Invoke-WebRequest -Uri "https://media.githubusercontent.com/media/nodemcu/espressif-sdk-archive/refs/heads/master/esp32_win32_msys2_environment_and_toolchain-20181001.zip" -OutFile "esp32_toolchain.zip"
94
87
88
+ - name : Extract Toolchain
89
+ run : |
90
+ Expand-Archive -Path "esp32_toolchain.zip" -DestinationPath "D:\" -Force
91
+
95
92
- name : Setup Python venv
96
- shell : msys2 {0}
93
+ shell : D:\msys32\usr\bin\bash.exe --login {0}
97
94
run : |
98
95
python -m venv .venv
99
96
. .venv/bin/activate
100
97
python -m pip install --upgrade pip
101
98
pip install pyserial
102
99
103
100
- name : Build firmware
104
- shell : msys2 {0}
101
+ shell : D:\msys32\usr\bin\bash.exe --login {0}
105
102
run : |
106
103
. .venv/bin/activate
107
104
@@ -118,13 +115,13 @@ jobs:
118
115
fi
119
116
120
117
- name : Copy required DLLs
121
- shell : msys2 {0}
118
+ shell : D:\msys32\usr\bin\bash.exe --login {0}
122
119
run : |
123
120
ldd luac.cross.exe | awk '{print $3}' | grep -vi "/c/windows" | xargs -I{} cp -v {} . || true
124
121
ls *.dll
125
122
126
123
- name : Check build items
127
- shell : msys2 {0}
124
+ shell : D:\msys32\usr\bin\bash.exe --login {0}
128
125
run : |
129
126
ls -ll bin/0x00000.bin bin/0x10000.bin luac.cross.exe
130
127
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ ifeq ($(OS),Windows_NT)
110
110
TOOLCHAIN_VERSION = 2020r3
111
111
GCCTOOLCHAIN = xtensa-lx106-elf-gcc8_4_0-esp-$(TOOLCHAIN_VERSION)-win32
112
112
TOOLCHAIN_ROOT = $(TOP_DIR)/tools/toolchains/esp8266-$(GCCTOOLCHAIN)
113
- ESPRESSIF_URL = https://dl.espressif .com/dl
113
+ ESPRESSIF_URL = https://media.githubusercontent .com/media/nodemcu/espressif-sdk-archive/refs/heads/master
114
114
TOOLCHAIN_EXT = zip
115
115
TOOLCHAIN_URL = $(ESPRESSIF_URL)/$(GCCTOOLCHAIN).$(TOOLCHAIN_EXT)
116
116
WGET = wget --tries=10 --timeout=15 --waitretry=30 --read-timeout=20 --retry-connrefused
You can’t perform that action at this time.
0 commit comments