From 179d871f54dc385591cf65ee75b84a20489b648f Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Fri, 2 Jul 2021 14:56:05 -0700 Subject: [PATCH 1/2] Update caching for dependencies in CI --- .github/workflows/ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d0bf896..e5ad95c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,12 +31,8 @@ jobs: - name: Cache dependencies uses: actions/cache@v2 with: - path: | - ~/.stack - .stack-work - key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml.lock') }} - restore-keys: | - ${{ runner.os }}-stack + path: ~/.stack + key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml.lock') }}-${{ hashFiles('trypurescript.cabal') }} - name: Build server code run: | From 682bc6b74bf806bd3c5e7251dd493794a4b53b7b Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Fri, 2 Jul 2021 15:32:06 -0700 Subject: [PATCH 2/2] Trivial update to test cache --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5ad95c2..f33f26a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,8 +35,7 @@ jobs: key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml.lock') }}-${{ hashFiles('trypurescript.cabal') }} - name: Build server code - run: | - stack --no-terminal -j1 build + run: stack --no-terminal -j1 build - name: Build server assets if: github.event_name == 'release'