From 28757d7b2674a154fef6462024fa125feb127e1e Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+Sporqist@users.noreply.github.com> Date: Wed, 19 Jul 2023 17:06:53 +0200 Subject: [PATCH] [CI] cache west modules --- .gitea/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 566ac27..c74a0bf 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -18,6 +18,24 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Cache west modules + uses: actions/cache@v3 + 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 }}- + timeout-minutes: 2 + continue-on-error: true + - name: West Init run: west init -l config