mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-31 16:27:03 +08:00
Fix submodule checkout in both push and PR (#1783)
This commit is contained in:
@@ -21,11 +21,13 @@ jobs:
|
|||||||
run: git clone https://github.com/lvgl/lv_micropython.git .
|
run: git clone https://github.com/lvgl/lv_micropython.git .
|
||||||
- name: Update submodules
|
- name: Update submodules
|
||||||
run: git submodule update --init --recursive
|
run: git submodule update --init --recursive
|
||||||
- name: Checkout lv_bindings
|
- name: Checkout LVGL submodule
|
||||||
working-directory: ./lib/lv_bindings/lvgl
|
working-directory: ./lib/lv_bindings/lvgl
|
||||||
run: |
|
run: |
|
||||||
git fetch
|
git fetch --force ${{ github.event.repository.git_url }} "+refs/heads/*:refs/remotes/origin/*"
|
||||||
git checkout $GITHUB_SHA
|
git fetch --force ${{ github.event.repository.git_url }} "+refs/pull/*/head:refs/remotes/origin/pr/*"
|
||||||
|
git checkout ${{ github.sha }} || git checkout ${{ github.event.pull_request.head.sha }}
|
||||||
|
git submodule update --init --recursive
|
||||||
- name: Build mpy-cross
|
- name: Build mpy-cross
|
||||||
run: make -j $(nproc) -C mpy-cross
|
run: make -j $(nproc) -C mpy-cross
|
||||||
- name: Build the unix port
|
- name: Build the unix port
|
||||||
|
|||||||
Reference in New Issue
Block a user