summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-06-08 21:23:34 -0400
committerPete Johanson <peter@peterjohanson.com>2020-06-08 21:23:34 -0400
commit06c985ccdd886e847a838daeebed595e79972be5 (patch)
tree4467814e8b2884bb5259059d19b4b3e598025a87
parent88720b1dff648e9fabf8ac31085a5c888dbd8112 (diff)
Initial caching work.
-rw-r--r--.github/workflows/build.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7d116b7..81cb272 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -9,6 +9,21 @@ jobs:
# you must check out the repository
- name: Checkout
uses: actions/checkout@v2
+ - name: Cache west modules
+ uses: actions/cache@v2
+ env:
+ cache-name: cache-zephyr-modules
+ with:
+ path:
+ - modules/
+ - tools/
+ - zephyr/
+ - bootloader/
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('app/west.yml') }}
+ restore-keys: |
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+ ${{ runner.os }}-
- name: West Init
uses: ./.github/actions/zephyr-west # Uses an action in the root directory
id: west-init