Merge pull request #13 from Mark19000/main #182
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build LVGL MicroPython for MacOS | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: # allow manual workflow starts | |
| jobs: | |
| build: | |
| runs-on: macos-14 | |
| steps: | |
| - name: Checkout repository with submodules | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies via Homebrew | |
| run: | | |
| xcode-select --install || true # already installed on github | |
| brew install pkg-config libffi ninja make SDL2 | |
| - name: Show version numbers | |
| run: | | |
| xcodebuild -version | |
| clang --version | |
| - name: Build LVGL MicroPython for macOS dev | |
| run: | | |
| ./scripts/build_mpos.sh macOS | |
| - name: Run syntax tests on macOS | |
| run: | | |
| ./tests/syntax.sh | |
| continue-on-error: true | |
| - name: Run unit tests on macOS | |
| run: | | |
| ./tests/unittest.sh | |
| continue-on-error: true | |
| - name: Upload built binary as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lvgl_micropy_macOS.bin | |
| path: lvgl_micropython/build/lvgl_micropy_macOS | |
| compression-level: 0 # don't zip it | |
| retention-days: 7 | |
| - name: Build LVGL MicroPython esp32 | |
| run: | | |
| ./scripts/build_mpos.sh esp32 | |
| - name: Upload built binary as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MicroPythonOS_esp32.bin | |
| path: lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin | |
| compression-level: 0 # don't zip it | |
| retention-days: 7 | |
| - name: Upload built binary as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MicroPythonOS_esp32.ota | |
| path: lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/micropython.bin | |
| compression-level: 0 # don't zip it | |
| retention-days: 7 | |
| - name: Cleanup | |
| run: | | |
| rm lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin | |
| rm lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/micropython.bin | |