2929 xcodebuild -version
3030 clang --version
3131
32+ - name : Extract OS version
33+ id : version
34+ run : |
35+ OS_VERSION=$(grep "release = " internal_filesystem/lib/mpos/build_info.py | cut -d "=" -f 2 | cut -d "#" -f 1 | tr -d " " | tr -d '"')
36+ echo "OS_VERSION=$OS_VERSION" >> $GITHUB_OUTPUT
37+ echo "Extracted version: $OS_VERSION"
38+
3239 - name : Build LVGL MicroPython for macOS dev
3340 run : |
3441 ./scripts/build_mpos.sh macOS
@@ -41,39 +48,42 @@ jobs:
4148 - name : Run unit tests on macOS
4249 run : |
4350 ./tests/unittest.sh
51+ mv lvgl_micropython/build/lvgl_micropy_macOS lvgl_micropython/build/MicroPythonOS_macOS_${{ steps.version.outputs.OS_VERSION }}.bin
4452 continue-on-error : true
4553
4654 - name : Upload built binary as artifact
4755 uses : actions/upload-artifact@v4
4856 with :
49- name : lvgl_micropy_macOS .bin
50- path : lvgl_micropython/build/lvgl_micropy_macOS
57+ name : MicroPythonOS_macOS_${{ steps.version.outputs.OS_VERSION }} .bin
58+ path : lvgl_micropython/build/MicroPythonOS_macOS_${{ steps.version.outputs.OS_VERSION }}.bin
5159 compression-level : 0 # don't zip it
5260 retention-days : 7
5361
5462 - name : Build LVGL MicroPython esp32
5563 run : |
5664 ./scripts/build_mpos.sh esp32
65+ mv lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin lvgl_micropython/build/MicroPythonOS_esp32_${{ steps.version.outputs.OS_VERSION }}.bin
66+ mv lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/micropython.bin lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/MicroPythonOS_esp32_${{ steps.version.outputs.OS_VERSION }}.ota
5767
5868 - name : Upload built binary as artifact
5969 uses : actions/upload-artifact@v4
6070 with :
61- name : MicroPythonOS_esp32 .bin
62- path : lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16 .bin
71+ name : MicroPythonOS_esp32_${{ steps.version.outputs.OS_VERSION }} .bin
72+ path : lvgl_micropython/build/MicroPythonOS_esp32_${{ steps.version.outputs.OS_VERSION }} .bin
6373 compression-level : 0 # don't zip it
6474 retention-days : 7
6575
6676 - name : Upload built binary as artifact
6777 uses : actions/upload-artifact@v4
6878 with :
69- name : MicroPythonOS_esp32 .ota
70- path : lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/micropython.bin
79+ name : MicroPythonOS_esp32_${{ steps.version.outputs.OS_VERSION }} .ota
80+ path : lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/MicroPythonOS_esp32_${{ steps.version.outputs.OS_VERSION }}.ota
7181 compression-level : 0 # don't zip it
7282 retention-days : 7
7383
7484 - name : Cleanup
7585 run : |
76- rm lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16 .bin
77- rm lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/micropython.bin
86+ rm lvgl_micropython/build/MicroPythonOS_esp32_${{ steps.version.outputs.OS_VERSION }} .bin
87+ rm lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/MicroPythonOS_esp32_${{ steps.version.outputs.OS_VERSION }}.ota
7888
7989
0 commit comments