CI: cleanup git submodules in M1 runner
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e718919be5
commit
6a5e5c10c4
1 changed files with 8 additions and 0 deletions
8
.github/workflows/m1_ci.yml
vendored
8
.github/workflows/m1_ci.yml
vendored
|
|
@ -17,6 +17,14 @@ jobs:
|
||||||
run:
|
run:
|
||||||
shell: "/usr/bin/arch -arch arm64e /bin/bash --noprofile --norc -eo pipefail {0}"
|
shell: "/usr/bin/arch -arch arm64e /bin/bash --noprofile --norc -eo pipefail {0}"
|
||||||
steps:
|
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
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Setup Zig
|
- name: Setup Zig
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue