Skip to content

Commit c8db5e9

Browse files
committed
updates macos CI
1 parent f345547 commit c8db5e9

File tree

1 file changed

+36
-18
lines changed

1 file changed

+36
-18
lines changed

.github/workflows/macOS.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,42 @@ on:
66
pull_request:
77

88
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:
1045
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
1146
runs-on: macos-latest
1247

@@ -23,7 +58,6 @@ jobs:
2358
- name: Install Dependencies
2459
run: |
2560
brew install --force ninja
26-
brew install --force sdl2
2761
git submodule update --init -- lib/pycparser
2862
git submodule update --init --jobs 4 -- lib/micropython
2963
git submodule update --init --jobs 4 -- lib/lvgl
@@ -53,26 +87,10 @@ jobs:
5387
# - name: Build Raspberry Pi PICO port
5488
# run: python3 make.py rp2 submodules clean mpy_cross BOARD=RPI_PICO DISPLAY=rgb_display INDEV=gt911
5589

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-
6590
- name: Setup ESP-IDF
6691
run: |
6792
export "IDF_PATH=${GITHUB_WORKSPACE}/lib/esp-idf"
6893
. ./lib/esp-idf/export.sh
6994
7095
- name: Build ESP32 port
7196
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

Comments
 (0)