-
Notifications
You must be signed in to change notification settings - Fork 38
136 lines (114 loc) · 5.6 KB
/
unix.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# Copyright (c) 2024 - 2025 Kevin G. Schlosser
name: Unix build
on:
push:
pull_request:
jobs:
build_esp32:
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Deps
run: |
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 ccache
git submodule update --init -- lib/pycparser
git submodule update --init --jobs 4 -- lib/micropython
git submodule update --init --jobs 4 -- lib/lvgl
- name: Cached Deps
id: cache-deps
uses: actions/cache@v4
with:
path: |
lib/esp-idf
~/.espressif
key: ${{ runner.os }}-v4-deps
- name: Get Build Deps
if: steps.cache-deps.outputs.cache-hit != 'true'
run: |
git submodule update --init --jobs 4 -- lib/esp-idf
cd lib/esp-idf
git submodule update --init --jobs 4 -- components/bt/host/nimble/nimble components/esp_wifi components/esptool_py/esptool components/lwip/lwip components/mbedtls/mbedtls components/bt/controller/lib_esp32 components/bt/controller/lib_esp32c3_family
cd ../..
export "IDF_PATH=${GITHUB_WORKSPACE}/lib/esp-idf"
./lib/esp-idf/install.sh all
- name: Setup ESP-IDF
run: |
export "IDF_PATH=${GITHUB_WORKSPACE}/lib/esp-idf"
. ./lib/esp-idf/export.sh
- name: Build ESP32_GENERIC_S3 4
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
- name: Build ESP32_GENERIC_S3 SPIRAM_OCT 4
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
- name: Build ESP32_GENERIC_S3 OCT RAM 8
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
- name: Build ESP32_GENERIC_S3 OCT RAM/FLASH 8
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
- name: Build ESP32_GENERIC_S3 OCT RAM/FLASH 16
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
- name: Build ESP32_GENERIC_S2 4
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S2 DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
- uses: actions/upload-artifact@v4
with:
name: lvgl_micropy_ESP32
path: build/*.bin
if-no-files-found: ignore
build_unix:
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Deps
run: |
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
git submodule update --init -- lib/pycparser
git submodule update --init --jobs 4 -- lib/micropython
git submodule update --init --jobs 4 -- lib/lvgl
git submodule update --init --jobs 4 -- lib/SDL
cd lib/SDL
git checkout release-2.30.2
cd ../..
- name: Build Unix port
run: python3 make.py unix DISPLAY=sdl_display INDEV=sdl_pointer
- uses: actions/upload-artifact@v4
with:
name: lvgl_micropy_unix
path: build/lvgl_micropy_unix
if-no-files-found: ignore
# - name: Build Raspberry Pi PICO port
# run: python3 make.py rp2 submodules clean mpy_cross BOARD=RPI_PICO DISPLAY=rgb_display INDEV=gt911
# build_stm32:
# if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - uses: carlosperate/[email protected]
# with:
# release: 'latest' # 9-2020-q2 The arm-none-eabi-gcc release to use.
#
# - uses: actions/setup-python@v5
# with:
# python-version: '3.11'
#
# - name: Install Deps
# run: |
# 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
# git submodule update --init -- lib/pycparser
# git submodule update --init --jobs 4 -- lib/micropython
# git submodule update --init --jobs 4 -- lib/lvgl
#
# - name: Build STM32 port
# run: python3 make.py stm32 submodules clean mpy_cross BOARD=STM32H7B3I_DK DISPLAY=rgb_display INDEV=gt911
#
# - uses: actions/upload-artifact@v4
# with:
# name: lvgl_micropy_ESP32_GENERIC_S3-8
# path: build/lvgl_micropy_ESP32_GENERIC_S3-8.bin
# if-no-files-found: ignore