From b7d6c1277ccc70e07bcf4e0e5696d63938b47d67 Mon Sep 17 00:00:00 2001 From: Mingshen Sun Date: Wed, 30 Dec 2020 14:36:35 -0800 Subject: [PATCH] Cache the go directory --- .github/workflows/testing.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index fd7b7c0..50022a1 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -26,6 +26,13 @@ jobs: key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} restore-keys: | ${{ runner.os }}-pods- + - uses: actions/cache@v2 + id: gopenpgp-cache + with: + path: go + key: ${{ runner.os }}-gopenpgp-${{ hashFiles('**/gopenpgp_build.sh') }} + restore-keys: | + ${{ runner.os }}-gopenpgp- - name: Carthage if: steps.carthage-cache.outputs.cache-hit != 'true' run: ./scripts/wcarthage bootstrap --platform iOS --no-use-binaries --cache-builds @@ -33,6 +40,7 @@ jobs: if: steps.pods-cache.outputs.cache-hit != 'true' run: bundle exec pod install - name: GopenPGP + if: steps.gopenpgp-cache.outputs.cache-hit != 'true' run: | export PATH="/usr/local/opt/go@1.14/bin:$PATH" ./scripts/gopenpgp_build.sh