forked from me-no-dev/ESPAsyncWebServer
-
Notifications
You must be signed in to change notification settings - Fork 98
51 lines (43 loc) · 1.53 KB
/
build-arduino-emulator.yml
File metadata and controls
51 lines (43 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build (Arduino Emulator)
on:
workflow_dispatch:
push:
branches:
- main
- release/*
paths-ignore:
- "docs/**"
- "mkdocs.yml"
- "README.md"
pull_request:
paths-ignore:
- "docs/**"
- "mkdocs.yml"
- "README.md"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
arduino-emulator:
name: Arduino Emulator (cmake, HOST)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build build-essential git
- name: Clone Arduino-Emulator
run: |
git clone --depth 1 --recurse-submodules https://github.com/pschatzmann/Arduino-Emulator.git .ci/arduino-emulator
- name: Clone AsyncTCP, Arduino FS headers, lwIP and lwIP contrib
run: |
git clone --depth 1 https://github.com/MitchBradley/PosixAsyncTCP .ci/asynctcp
git clone --depth 1 https://github.com/espressif/arduino-esp32.git .ci/arduino-esp32
- name: Build with Arduino-Emulator
run: |
cmake -S examples/arduino_emulator -B .ci/arduino-emulator-build/out -G Ninja
cmake --build .ci/arduino-emulator-build/out --target espasyncwebserver_host --parallel
chmod +x .ci/arduino-emulator-build/out/espasyncwebserver_host