Skip to content

Commit

Permalink
Split dependency cache restore and save into separate steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix-Rm committed Sep 3, 2024
1 parent ed3b4cf commit 3e39d1a
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,27 @@ jobs:
- name: Install build dependencies
run: sudo apt-get install clang ninja-build mold libvulkan-dev

- name: Cache dependencies
id: dependency-cache
uses: actions/cache@v3
- name: Restore dependency cache
id: dependency-cache-restore
uses: actions/cache/restore@v3
with:
path: |
- llvm
- upmem
llvm
upmem
key: cinnamon-dependencies-${{ runner.os }}
restore-keys: cinnamon-dependencies-${{ runner.os }}

- name: Build
run: .github/workflows/build-ci.sh
- uses: actions/cache/save@v3

- name: Test
working-directory: cinnamon/build
run: ninja check-cinm-mlir

- name: Save dependency cache
uses: actions/cache/save@v3
if: always()
with:
path: |
- llvm
- upmem
key: cinnamon-dependencies-${{ runner.os }}

- name: Test
working-directory: cinnamon/build
run: ninja check-cinm-mlir
llvm
upmem
key: ${{ steps.dependency-cache-restore.outputs.cache-primary-key }}

0 comments on commit 3e39d1a

Please sign in to comment.