File tree Expand file tree Collapse file tree 1 file changed +21
-20
lines changed
Expand file tree Collapse file tree 1 file changed +21
-20
lines changed Original file line number Diff line number Diff line change 5252 run : |
5353 sudo apt-get update
5454 sudo apt-get install -y git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
55-
55+
56+ # Clone MicroPython (if not cached)
57+ - name : Clone MicroPython
58+ id : clone-micropython
59+ if : steps.cache_esp_idf.outputs.cache-hit != 'true'
60+ run : |
61+ cd ~
62+ if [ "${{ github.ref }}" == "refs/heads/master" ]; then
63+ echo "Master branch detected - cloning MicroPython release: $MPY_RELEASE"
64+ git clone --depth 1 --branch ${{ env.MPY_RELEASE }} https://github.com/micropython/micropython.git
65+ else
66+ echo "Development branch detected - cloning latest MicroPython master"
67+ git clone --depth 1 https://github.com/micropython/micropython.git
68+ fi
69+ cd micropython
70+ cd mpy-cross
71+ make
72+
73+ echo "Micropython setup successfully"
74+ source ~/micropython/tools/ci.sh && echo "IDF_VER=$IDF_VER" >> $GITHUB_ENV
75+
5676 # Download and set up ESP-IDF (if not cached)
5777 - name : Set up ESP-IDF
5878 id : export-idf
6686 ./install.sh all
6787 source ./export.sh
6888
69- # Clone the latest MicroPython release (if not cached)
70- - name : Clone MicroPython latest release
71- id : clone-micropython
72- if : steps.cache_esp_idf.outputs.cache-hit != 'true'
73- run : |
74- echo "Cloning MicroPython release: $MPY_RELEASE"
75- cd ~/esp-idf/
76- source ./export.sh
77- cd ~
78- git clone --depth 1 --branch ${{ env.MPY_RELEASE }} https://github.com/micropython/micropython.git
79- # git clone --depth 1 https://github.com/micropython/micropython.git
80- cd micropython
81- # git submodule update --init --depth 1
82- cd mpy-cross
83- make
84-
85- echo "Micropython setup successfully"
86- source ~/micropython/tools/ci.sh && echo "IDF_VER=$IDF_VER" >> $GITHUB_ENV
87-
8889 # Dynamically create jobs for each board
8990 build :
9091 needs : setup-environment
You can’t perform that action at this time.
0 commit comments