ci: Resolve git-submodules related Actions warning

The `.git/modules` folder was not being initialized, which caused the post-cleanup of the `Checkout` step to flag an error at the end.  Caching this folder and thus completely caching anything submodule related, should eliminate this warning.

Also allowed submodules to be pulled in parallel when they aren't cached.
This commit is contained in:
Tyler Wilding 2020-09-19 21:24:25 -04:00 committed by lightningterror
parent e1ff498a8e
commit fe10f23994
2 changed files with 4 additions and 2 deletions

View File

@ -64,10 +64,11 @@ jobs:
path: |
./3rdparty/xz
./3rdparty/gtest
./.git/modules/
- name: Checkout Submodules
if: steps.cache-submodules.outputs.cache-hit != 'true'
run: git submodule update --init --recursive
run: git submodule update --init --recursive --jobs 2
# -- SETUP CCACHE - https://cristianadam.eu/20200113/speeding-up-c-plus-plus-github-actions-using-ccache/
- name: Prepare ccache timestamp

View File

@ -65,10 +65,11 @@ jobs:
path: |
./3rdparty/xz
./3rdparty/gtest
./.git/modules/
- name: Checkout Submodules
if: steps.cache-submodules.outputs.cache-hit != 'true'
run: git submodule update --init --recursive
run: git submodule update --init --recursive --jobs 2
- name: Prepare Artifact Git Info
shell: bash