From fdbcf8d90684b508b50fc8c0fab0709e12b168bc Mon Sep 17 00:00:00 2001
From: Tom French <tom@tomfren.ch>
Date: Sun, 29 May 2022 21:47:28 +0100
Subject: [PATCH] ci: cache node_modules per runner os

---
 .github/workflows/build.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ed4da6df5..84f3cda83 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -70,7 +70,7 @@ jobs:
         id: cache
         with:
           path: '**/node_modules'
-          key: yarn-v1-${{ hashFiles('**/yarn.lock') }}
+          key: yarn-v1-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
       - name: Install
         run: yarn --immutable
         if: steps.cache.outputs.cache-hit != 'true'
-- 
GitLab