Skip to content

Commit f345547

Browse files
committed
updates unix CI
1 parent 25bbea5 commit f345547

File tree

3 files changed

+79
-11
lines changed

3 files changed

+79
-11
lines changed

.github/workflows/unix.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
name: Unix build
44

5-
6-
75
on:
86
push:
97
pull_request:
@@ -17,7 +15,7 @@ jobs:
1715

1816
- uses: actions/setup-python@v5
1917
with:
20-
python-version: '3.10'
18+
python-version: '3.11'
2119

2220
- name: Install Deps
2321
run: |
@@ -50,13 +48,34 @@ jobs:
5048
export "IDF_PATH=${GITHUB_WORKSPACE}/lib/esp-idf"
5149
. ./lib/esp-idf/export.sh
5250
53-
- name: Build ESP32 port
54-
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911 --ccache
51+
- name: Build ESP32_GENERIC_S3
52+
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
53+
54+
- name: Build ESP32_GENERIC_S3 SPIRAM_OCT
55+
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
56+
57+
- name: Build ESP32_GENERIC_S3 SPIRAM_OCT
58+
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT --flash-size=8 DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
59+
60+
- name: Build ESP32_GENERIC_S3 SPIRAM_OCT
61+
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT --flash-size=8 --octal-flash DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
62+
63+
- name: Build ESP32_GENERIC_S3 SPIRAM_OCT
64+
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT --flash-size=16 --octal-flash DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
65+
66+
- name: Build ESP32_GENERIC_S2 SPIRAM_OCT
67+
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S2 BOARD_VARIANT=SPIRAM_OCT DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
5568

5669
- uses: actions/upload-artifact@v4
5770
with:
58-
name: lvgl_micropy_ESP32_GENERIC_S3-8
59-
path: build/lvgl_micropy_ESP32_GENERIC_S3-8.bin
71+
name: lvgl_micropy_ESP32
72+
path:
73+
lvgl_micropy_ESP32_GENERIC_S3-4.bin
74+
lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-4.bin
75+
lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-8.bin
76+
lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT_OCTFLASH-8.bin
77+
lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT_OCTFLASH-16.bin
78+
lvgl_micropy_ESP32_GENERIC_S2-4.bin
6079
if-no-files-found: ignore
6180

6281
build_unix:
@@ -67,13 +86,13 @@ jobs:
6786
- uses: actions/checkout@v4
6887
- uses: actions/setup-python@v5
6988
with:
70-
python-version: '3.10'
89+
python-version: '3.11'
7190

7291
- name: Install Deps
7392
run: |
7493
sudo apt-get update && sudo apt-get install --assume-yes --allow-downgrades --allow-remove-essential --allow-change-held-packages build-essential pkg-config cmake ninja-build libffi-dev gnome-desktop-testing libasound2-dev libpulse-dev libaudio-dev libjack-dev libsndio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev fcitx-libs-dev libpipewire-0.3-dev libwayland-dev libdecor-0-dev
7594
git submodule update --init -- lib/pycparser
76-
git submodule update --init --jobs 4 -- lib/micropython
95+
git submodule update --init --jobs 4 -- lib/micropython
7796
git submodule update --init --jobs 4 -- lib/lvgl
7897
git submodule update --init --jobs 4 -- lib/SDL
7998
cd lib/SDL
@@ -104,7 +123,7 @@ jobs:
104123
#
105124
# - uses: actions/setup-python@v5
106125
# with:
107-
# python-version: '3.10'
126+
# python-version: '3.11'
108127
#
109128
# - name: Install Deps
110129
# run: |

builder/__init__.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
_windows_env = None
1212

1313

14+
DO_NOT_SCRUB_BUILD_FOLDER = False
15+
16+
1417
def scrub_build_folder():
18+
if DO_NOT_SCRUB_BUILD_FOLDER:
19+
return
20+
1521
for f in os.listdir('build'):
1622
f = os.path.join('build', f)
1723
for pattern in ('.h', 'manifest.py', '.board'):
@@ -268,6 +274,40 @@ def generate_manifest(
268274
entry = f"freeze('{file_path}', '{file_name}')"
269275
manifest_files.append(entry)
270276

277+
if 'all' in io_expanders:
278+
io_expanders.remove('all')
279+
path = f'{script_dir}/api_drivers/common_api_drivers/io_expander'
280+
281+
for file in os.listdir(path):
282+
if file.endswith('.py'):
283+
name = file[:-3]
284+
io_expanders.append(name)
285+
286+
if 'all' in indevs:
287+
indevs.remove('all')
288+
path = f'{script_dir}/api_drivers/common_api_drivers/ndev'
289+
for file in os.listdir(path):
290+
if (
291+
file == 'focaltech_touch.py' or
292+
file == 'evdev' or
293+
'extension' in file or
294+
'settings' in file
295+
):
296+
continue
297+
298+
if file.endswith('.py'):
299+
name = file[:-3]
300+
indevs.append(name)
301+
302+
if 'all' in displays:
303+
displays.remove('all')
304+
path = f'{script_dir}/api_drivers/common_api_drivers/ndev'
305+
for file in os.listdir(path):
306+
if file.endswith('.py'):
307+
continue
308+
309+
displays.append(file)
310+
271311
for file in io_expanders:
272312
if not os.path.exists(file):
273313
tmp_file = (

make.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
args1, extra_args = argParser.parse_known_args(sys.argv[1:])
3030
target = args1.target[0]
3131

32-
argParser = ArgumentParser(prefix_chars='mscLBFDIVE')
32+
argParser = ArgumentParser(prefix_chars='-mscLBFDIVE')
3333

3434
argParser.add_argument(
3535
'clean',
@@ -107,6 +107,14 @@
107107
default=[]
108108
)
109109

110+
argParser.add_argument(
111+
'--no-scrub',
112+
dest='no_scrub',
113+
default=False,
114+
action='store_true'
115+
)
116+
117+
110118
args2, extra_args = argParser.parse_known_args(extra_args)
111119

112120
lv_cflags = args2.lv_cflags
@@ -116,6 +124,7 @@
116124
displays = args2.displays
117125
indevs = args2.indevs
118126
expanders = args2.expanders
127+
builder.DO_NOT_SCRUB_BUILD_FOLDER = args2.no_scrub
119128

120129

121130
if lv_cflags is None:

0 commit comments

Comments
 (0)