Skip to content

Commit

Permalink
github/workflows: Added the platform suffix to the linuxkit cache.
Browse files Browse the repository at this point in the history
Packages built for different platforms are stored in the same cache
based on the arch.

This PR will creates cache based on the platform suffix for eve to
refer the it from the cache.

Signed-off-by: yash-zededa <[email protected]>
  • Loading branch information
yash-zededa authored and rene committed Feb 3, 2025
1 parent b871d8d commit 784df17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.linuxkit/cache
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.sha }}
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.sha }}-${{ matrix.platform }}
- name: Build packages ${{ matrix.os }} for ${{ matrix.platform }}
run: |
make V=1 PRUNE=1 PLATFORM=${{ matrix.platform }} ZARCH=${{ matrix.arch }} pkgs
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ~/.linuxkit/cache
key: linuxkit-amd64-${{ github.event.pull_request.head.sha }}
key: linuxkit-amd64-${{ github.event.pull_request.head.sha }}-${{ matrix.platform }}
fail-on-cache-miss: true
- name: load images we need from linuxkit cache into docker
run: |
Expand All @@ -181,7 +181,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ~/.linuxkit/cache
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.sha }}
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.sha }}-${{ matrix.platform }}
fail-on-cache-miss: true
- name: set environment
env:
Expand Down

0 comments on commit 784df17

Please sign in to comment.