|
9 | 9 | pull_request:
|
10 | 10 |
|
11 | 11 | jobs:
|
12 |
| - build: |
| 12 | + build_esp32: |
13 | 13 | if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
|
14 | 14 | runs-on: ubuntu-latest
|
15 |
| - |
16 | 15 | steps:
|
17 | 16 | - uses: actions/checkout@v4
|
18 | 17 |
|
19 |
| - - uses: carlosperate/[email protected] |
20 |
| - with: |
21 |
| - release: 'latest' # 9-2020-q2 The arm-none-eabi-gcc release to use. |
22 |
| - |
23 | 18 | - uses: actions/setup-python@v5
|
24 | 19 | with:
|
25 | 20 | python-version: '3.10'
|
26 | 21 |
|
27 | 22 | - name: Install Deps
|
28 | 23 | 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 |
30 | 25 | git submodule update --init -- lib/pycparser
|
31 | 26 | 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 |
37 | 28 |
|
38 | 29 | - name: Cached Deps
|
39 | 30 | id: cache-deps
|
@@ -62,23 +53,71 @@ jobs:
|
62 | 53 | - name: Build ESP32 port
|
63 | 54 | run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911 --ccache
|
64 | 55 |
|
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 |
67 | 61 |
|
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 |
70 | 65 |
|
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 |
74 | 69 | 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 ../.. |
76 | 82 |
|
77 | 83 | - name: Build Unix port
|
78 | 84 | run: python3 make.py unix DISPLAY=sdl_display INDEV=sdl_pointer
|
79 | 85 |
|
80 | 86 | - uses: actions/upload-artifact@v4
|
81 | 87 | 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 |
83 | 89 | path: build/lvgl_micropy_unix
|
84 | 90 | 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