CI: cleanup git submodules in M1 runner
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
505909486b
commit
1018f299d8
1 changed files with 1 additions and 5 deletions
6
.github/workflows/m1_ci.yml
vendored
6
.github/workflows/m1_ci.yml
vendored
|
|
@ -20,11 +20,7 @@ jobs:
|
||||||
- name: Clean repository submodules
|
- name: Clean repository submodules
|
||||||
# See https://github.com/actions/checkout/issues/385
|
# See https://github.com/actions/checkout/issues/385
|
||||||
run: |
|
run: |
|
||||||
git submodule deinit .
|
sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
|
||||||
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