@@ -43,38 +43,14 @@ jobs:
4343 run : |
4444 git clone --depth 1 --recurse-submodules https://github.com/pschatzmann/Arduino-Emulator.git .ci/arduino-emulator
4545
46- - name : Generate host build project
46+ - name : Clone AsyncTCP, Arduino FS headers, lwIP and lwIP contrib
4747 run : |
48- mkdir -p .ci/arduino-emulator-build
49- cat > .ci/arduino-emulator-build/CMakeLists.txt <<'EOF'
50- cmake_minimum_required(VERSION 3.11)
51- project(espasyncwebserver_host_build LANGUAGES C CXX)
52-
53- add_subdirectory(${CMAKE_SOURCE_DIR}/../arduino-emulator ${CMAKE_BINARY_DIR}/arduino-emulator)
54- include(${CMAKE_SOURCE_DIR}/../arduino-emulator/Arduino.cmake)
55-
56- arduino_library(asynctcp "$ENV{ASYNCTCP_REPO}" TAG "$ENV{ASYNCTCP_REF}")
57- arduino_library(espasyncwebserver "${CMAKE_SOURCE_DIR}/../..")
58-
59- arduino_sketch(host-build-check host-build-check.ino LIBRARIES asynctcp espasyncwebserver DEFINITIONS HOST)
60- EOF
61-
62- cat > .ci/arduino-emulator-build/host-build-check.ino <<'EOF'
63- #include <Arduino.h>
64- #include <ESPAsyncWebServer.h>
65-
66- AsyncWebServer server(80);
67-
68- void setup() {
69- server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) {
70- request->send(200, "text/plain", "host-ok");
71- });
72- }
73-
74- void loop() {}
75- EOF
48+ git clone --depth 1 --branch "${ASYNCTCP_REF}" "${ASYNCTCP_REPO}" .ci/asynctcp
49+ git clone --depth 1 https://github.com/espressif/arduino-esp32.git .ci/arduino-esp32
50+ git clone --depth 1 https://github.com/lwip-tcpip/lwip.git .ci/lwip
51+ git clone --depth 1 https://git.savannah.nongnu.org/git/lwip/lwip-contrib.git .ci/lwip-contrib
7652
7753 - name : Build with Arduino-Emulator
7854 run : |
79- cmake -S .ci/arduino-emulator-build -B .ci/arduino-emulator-build/out -G Ninja
80- cmake --build .ci/arduino-emulator-build/out --parallel
55+ cmake -S arduino_emulator_example -B .ci/arduino-emulator-build/out -G Ninja
56+ cmake --build .ci/arduino-emulator-build/out --target espasyncwebserver -- parallel
0 commit comments