|
6 | 6 | pull_request:
|
7 | 7 |
|
8 | 8 | jobs:
|
9 |
| - build: |
| 9 | + |
| 10 | + build_macos: |
| 11 | + if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} |
| 12 | + runs-on: macos-latest |
| 13 | + |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + |
| 17 | + - uses: actions/setup-python@v5 |
| 18 | + with: |
| 19 | + python-version: '3.11' |
| 20 | + |
| 21 | + - name: Install Dependencies |
| 22 | + run: | |
| 23 | + brew install --force ninja |
| 24 | + brew install --force sdl2 |
| 25 | + git submodule update --init -- lib/pycparser |
| 26 | + git submodule update --init --jobs 4 -- lib/micropython |
| 27 | + git submodule update --init --jobs 4 -- lib/lvgl |
| 28 | +
|
| 29 | + # - name: Build STM32 port |
| 30 | + # run: python3 make.py stm32 submodules clean mpy_cross BOARD=STM32H7B3I_DK DISPLAY=rgb_display INDEV=gt911 |
| 31 | + |
| 32 | + # - name: Build Raspberry Pi PICO port |
| 33 | + # run: python3 make.py rp2 submodules clean mpy_cross BOARD=RPI_PICO DISPLAY=rgb_display INDEV=gt911 |
| 34 | + |
| 35 | + - name: Build macOS port |
| 36 | + run: python3 make.py macOS DISPLAY=sdl_display INDEV=sdl_pointer |
| 37 | + |
| 38 | + - uses: actions/upload-artifact@v4 |
| 39 | + with: |
| 40 | + name: lvgl_micropy_macos |
| 41 | + path: build/lvgl_micropy_macos |
| 42 | + if-no-files-found: ignore |
| 43 | + |
| 44 | + build_esp32: |
10 | 45 | if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
|
11 | 46 | runs-on: macos-latest
|
12 | 47 |
|
|
23 | 58 | - name: Install Dependencies
|
24 | 59 | run: |
|
25 | 60 | brew install --force ninja
|
26 |
| - brew install --force sdl2 |
27 | 61 | git submodule update --init -- lib/pycparser
|
28 | 62 | git submodule update --init --jobs 4 -- lib/micropython
|
29 | 63 | git submodule update --init --jobs 4 -- lib/lvgl
|
@@ -53,26 +87,10 @@ jobs:
|
53 | 87 | # - name: Build Raspberry Pi PICO port
|
54 | 88 | # run: python3 make.py rp2 submodules clean mpy_cross BOARD=RPI_PICO DISPLAY=rgb_display INDEV=gt911
|
55 | 89 |
|
56 |
| - - name: Get build datetime |
57 |
| - id: datetime |
58 |
| - uses: Kaven-Universe/github-action-current-date-time@v1 |
59 |
| - with: |
60 |
| - format: "YYYY_MM_DD HH_mm_ss_SSS" |
61 |
| - |
62 |
| - - name: Build macOS port |
63 |
| - run: python3 make.py macOS DISPLAY=sdl_display INDEV=sdl_pointer |
64 |
| - |
65 | 90 | - name: Setup ESP-IDF
|
66 | 91 | run: |
|
67 | 92 | export "IDF_PATH=${GITHUB_WORKSPACE}/lib/esp-idf"
|
68 | 93 | . ./lib/esp-idf/export.sh
|
69 | 94 |
|
70 | 95 | - name: Build ESP32 port
|
71 | 96 | run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911
|
72 |
| - |
73 |
| - |
74 |
| - - uses: actions/upload-artifact@v4 |
75 |
| - with: |
76 |
| - name: lvgl_micropy_macos-${{ steps.datetime.outputs.month }}.${{ steps.datetime.outputs.day }}.${{ steps.datetime.outputs.year }}-${{ steps.datetime.outputs.hours }}_${{ steps.datetime.outputs.minutes }}_${{ steps.datetime.outputs.seconds }} |
77 |
| - path: build/lvgl_micropy_macos |
78 |
| - if-no-files-found: ignore |
|
0 commit comments