Fix submodule checkout in both push and PR (#1783)

This commit is contained in:
Amir Gonnen
2020-09-11 02:20:59 +03:00
committed by GitHub
parent 3f36139469
commit 1b3e1c4331

View File

@@ -21,11 +21,13 @@ jobs:
run: git clone https://github.com/lvgl/lv_micropython.git .
- name: Update submodules
run: git submodule update --init --recursive
- name: Checkout lv_bindings
- name: Checkout LVGL submodule
working-directory: ./lib/lv_bindings/lvgl
run: |
git fetch
git checkout $GITHUB_SHA
git fetch --force ${{ github.event.repository.git_url }} "+refs/heads/*:refs/remotes/origin/*"
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
run: make -j $(nproc) -C mpy-cross
- name: Build the unix port