File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+ name : Build (LibreTiny)
4+
5+ on :
6+ workflow_dispatch :
7+ push :
8+ branches :
9+ - main
10+ - release/*
11+ pull_request :
12+
13+ concurrency :
14+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+ cancel-in-progress : true
16+
17+ jobs :
18+ platformio-rpi :
19+ name : LibreTiny (pio)
20+ runs-on : ubuntu-latest
21+ strategy :
22+ fail-fast : false
23+ matrix :
24+ board :
25+ - generic-bk7231n-qfn32-tuya
26+ - generic-rtl8710bn-2mb-788k
27+
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@v4
31+
32+ - name : Cache PlatformIO
33+ uses : actions/cache@v4
34+ with :
35+ key : ${{ runner.os }}-pio
36+ path : |
37+ ~/.cache/pip
38+ ~/.platformio
39+
40+ - name : Python
41+ uses : actions/setup-python@v5
42+ with :
43+ python-version : " 3.x"
44+
45+ - name : Install PIO
46+ run : |
47+ python -m pip install --upgrade pip
48+ pip install --upgrade platformio
49+
50+ - name : Build Examples
51+ run : |
52+ for i in `ls examples`; do
53+ echo "============================================================="
54+ echo "Building examples/$i..."
55+ echo "============================================================="
56+ PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=${{ matrix.board }} pio run -e ci-libretiny
57+ done
Original file line number Diff line number Diff line change @@ -111,6 +111,16 @@ lib_ignore =
111111build_flags = ${env.build_flags}
112112 -Wno-missing-field-initializers
113113
114+ [env:libretiny]
115+ platform = libretiny
116+ board = generic-bk7231n-qfn32-tuya
117+ ; board = generic-rtl8710bn-2mb-788k
118+ lib_deps =
119+ ESP32Async/AsyncTCP @ 3.4.3
120+ ; use FreeRTOS v9.0.0 for RTL8710BN
121+ ; (BK7231 already uses it)
122+ custom_versions.freertos = 9.0.0
123+
114124; CI
115125
116126[env:ci-arduino-2]
@@ -156,3 +166,10 @@ lib_ignore =
156166 lwIP_ESPHost
157167build_flags = ${env.build_flags}
158168 -Wno-missing-field-initializers
169+
170+ [env:ci-libretiny]
171+ platform = libretiny
172+ board = ${sysenv.PIO_BOARD}
173+ lib_deps =
174+ ESP32Async/AsyncTCP @ 3.4.3
175+ custom_versions.freertos = 9.0.0
You can’t perform that action at this time.
0 commit comments