From 3217bc0cef0eada43c524ea7702784f995234940 Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Fri, 27 Mar 2026 18:33:03 +0100 Subject: [PATCH] avoid cache clashes in ci between platforms --- .github/workflows/ci.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e57049e70..12d406d1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,7 +58,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 90 - name: build-${{ matrix.os }} + name: build-ci-${{ matrix.os }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -76,6 +76,15 @@ jobs: nimble-version: '0.20.1' repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Cache nimble deps + uses: actions/cache@v4 + with: + path: | + nimbledeps/pkgs2 + ~/.cache + key: nimble-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('waku.nimble') }} + restore-keys: nimble-${{ runner.os }}-${{ runner.arch }}- + - name: Make update run: make update @@ -113,7 +122,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 90 - name: test-${{ matrix.os }} + name: test-ci-${{ matrix.os }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -131,6 +140,15 @@ jobs: nimble-version: '0.20.1' repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Cache nimble deps + uses: actions/cache@v4 + with: + path: | + nimbledeps/pkgs2 + ~/.cache + key: nimble-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('waku.nimble') }} + restore-keys: nimble-${{ runner.os }}-${{ runner.arch }}- + - name: Make update run: make update