Skip to content

Commit 25bbea5

Browse files
committed
Changes CI
1 parent b7799f7 commit 25bbea5

File tree

1 file changed

+60
-21
lines changed

1 file changed

+60
-21
lines changed

.github/workflows/unix.yml

Lines changed: 60 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,22 @@ on:
99
pull_request:
1010

1111
jobs:
12-
build:
12+
build_esp32:
1313
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
1414
runs-on: ubuntu-latest
15-
1615
steps:
1716
- uses: actions/checkout@v4
1817

19-
- uses: carlosperate/[email protected]
20-
with:
21-
release: 'latest' # 9-2020-q2 The arm-none-eabi-gcc release to use.
22-
2318
- uses: actions/setup-python@v5
2419
with:
2520
python-version: '3.10'
2621

2722
- name: Install Deps
2823
run: |
29-
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 ccache
24+
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
3025
git submodule update --init -- lib/pycparser
3126
git submodule update --init --jobs 4 -- lib/micropython
32-
git submodule update --init --jobs 4 -- lib/lvgl
33-
git submodule update --init --jobs 4 -- lib/SDL
34-
cd lib/SDL
35-
git checkout release-2.30.2
36-
cd ../..
27+
git submodule update --init --jobs 4 -- lib/lvgl
3728
3829
- name: Cached Deps
3930
id: cache-deps
@@ -62,23 +53,71 @@ jobs:
6253
- name: Build ESP32 port
6354
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911 --ccache
6455

65-
# - name: Build STM32 port
66-
# run: python3 make.py stm32 submodules clean mpy_cross BOARD=STM32H7B3I_DK DISPLAY=rgb_display INDEV=gt911
56+
- uses: actions/upload-artifact@v4
57+
with:
58+
name: lvgl_micropy_ESP32_GENERIC_S3-8
59+
path: build/lvgl_micropy_ESP32_GENERIC_S3-8.bin
60+
if-no-files-found: ignore
6761

68-
# - name: Build Raspberry Pi PICO port
69-
# run: python3 make.py rp2 submodules clean mpy_cross BOARD=RPI_PICO DISPLAY=rgb_display INDEV=gt911
62+
build_unix:
63+
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
64+
runs-on: ubuntu-latest
7065

71-
- name: Get build datetime
72-
id: datetime
73-
uses: Kaven-Universe/github-action-current-date-time@v1
66+
steps:
67+
- uses: actions/checkout@v4
68+
- uses: actions/setup-python@v5
7469
with:
75-
format: "YYYY_MM_DD HH_mm_ss_SSS"
70+
python-version: '3.10'
71+
72+
- name: Install Deps
73+
run: |
74+
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
75+
git submodule update --init -- lib/pycparser
76+
git submodule update --init --jobs 4 -- lib/micropython
77+
git submodule update --init --jobs 4 -- lib/lvgl
78+
git submodule update --init --jobs 4 -- lib/SDL
79+
cd lib/SDL
80+
git checkout release-2.30.2
81+
cd ../..
7682
7783
- name: Build Unix port
7884
run: python3 make.py unix DISPLAY=sdl_display INDEV=sdl_pointer
7985

8086
- uses: actions/upload-artifact@v4
8187
with:
82-
name: lvgl_micropy_unix-${{ steps.datetime.outputs.month }}.${{ steps.datetime.outputs.day }}.${{ steps.datetime.outputs.year }}-${{ steps.datetime.outputs.hours }}_${{ steps.datetime.outputs.minutes }}_${{ steps.datetime.outputs.seconds }}
88+
name: lvgl_micropy_unix
8389
path: build/lvgl_micropy_unix
8490
if-no-files-found: ignore
91+
92+
# - name: Build Raspberry Pi PICO port
93+
# run: python3 make.py rp2 submodules clean mpy_cross BOARD=RPI_PICO DISPLAY=rgb_display INDEV=gt911
94+
95+
# build_stm32:
96+
# if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
97+
# runs-on: ubuntu-latest
98+
# steps:
99+
# - uses: actions/checkout@v4
100+
#
101+
# - uses: carlosperate/[email protected]
102+
# with:
103+
# release: 'latest' # 9-2020-q2 The arm-none-eabi-gcc release to use.
104+
#
105+
# - uses: actions/setup-python@v5
106+
# with:
107+
# python-version: '3.10'
108+
#
109+
# - name: Install Deps
110+
# run: |
111+
# 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
112+
# git submodule update --init -- lib/pycparser
113+
# git submodule update --init --jobs 4 -- lib/micropython
114+
# git submodule update --init --jobs 4 -- lib/lvgl
115+
#
116+
# - name: Build STM32 port
117+
# run: python3 make.py stm32 submodules clean mpy_cross BOARD=STM32H7B3I_DK DISPLAY=rgb_display INDEV=gt911
118+
#
119+
# - uses: actions/upload-artifact@v4
120+
# with:
121+
# name: lvgl_micropy_ESP32_GENERIC_S3-8
122+
# path: build/lvgl_micropy_ESP32_GENERIC_S3-8.bin
123+
# if-no-files-found: ignore

0 commit comments

Comments
 (0)