From fe10f23994b866389f03bfb2fcab5a7c763fe5a1 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Sat, 19 Sep 2020 21:24:25 -0400 Subject: [PATCH] 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. --- .github/workflows/linux-workflow.yml | 3 ++- .github/workflows/windows-workflow.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux-workflow.yml b/.github/workflows/linux-workflow.yml index b719ea24f4..d49e9bb13c 100644 --- a/.github/workflows/linux-workflow.yml +++ b/.github/workflows/linux-workflow.yml @@ -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 diff --git a/.github/workflows/windows-workflow.yml b/.github/workflows/windows-workflow.yml index 1fff7af896..8f0f3946e7 100644 --- a/.github/workflows/windows-workflow.yml +++ b/.github/workflows/windows-workflow.yml @@ -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