glfw: CI: cleanup git submodules in M1 runner

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-11 22:05:09 -07:00
parent 46bb995164
commit e718919be5

View file

@ -14,6 +14,14 @@ jobs:
run:
shell: "/usr/bin/arch -arch arm64e /bin/bash --noprofile --norc -eo pipefail {0}"
steps:
- name: Clean repository submodules
# See https://github.com/actions/checkout/issues/385
run: |
git submodule deinit .
git submodule | cut -c43- | while read -r line; do (git rm "$line"); done
git config --local -l | grep submodule | sed -e 's/^\(submodule\.[^.]*\)\(.*\)/\1/g' | while read -r line; do (git config --local --remove-section "$line"); done
rm -rf .gitmodules .git/modules
git reset --hard HEAD
- name: Checkout
uses: actions/checkout@v2
- name: Setup Zig