Skip to content

Commit 2eade71

Browse files
committed
ci: Cache scala .class files
1 parent 76b10d9 commit 2eade71

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,6 @@ jobs:
5454
- name: Install cargo
5555
uses: dtolnay/rust-toolchain@stable
5656

57-
- name: Cache Scala deps
58-
uses: actions/cache@v5
59-
with:
60-
path: |
61-
~/.ivy2/cache
62-
~/.sbt
63-
${{ env.CHIPYARD_RELPATH }}/.ivy2/cache
64-
${{ env.CHIPYARD_RELPATH }}/.sbt
65-
~/.cache/coursier
66-
key: scala-${{ hashFiles('**/*.sbt', '**/project/**') }}-${{ runner.os }}-${{ runner.arch }}-${{ env.CACHE_NUMBER }}
67-
6857
- name: Cache conda-env
6958
id: cache-conda-env
7059
uses: actions/cache@v5
@@ -74,6 +63,16 @@ jobs:
7463
${{ env.CHIPYARD_RELPATH }}/env.sh
7564
key: chipyard-${{ env.CHIPYARD_HASH }}-${{ runner.os }}-${{ runner.arch }}-${{ env.CACHE_NUMBER }}
7665

66+
- name: Cache Scala build files
67+
uses: actions/cache@v5
68+
with:
69+
path: |
70+
${{ env.CHIPYARD_DIR }}/generators/**/target/**
71+
${{ env.CHIPYARD_RELPATH }}/.ivy2/cache
72+
${{ env.CHIPYARD_RELPATH }}/.sbt
73+
~/.cache/coursier
74+
key: scala-${{ hashFiles('**/*.sbt', '**/project/**') }}-${{ runner.os }}-${{ runner.arch }}-${{ env.CACHE_NUMBER }}
75+
7776
- name: Setup Chipyard
7877
run: |
7978
.github/scripts/setup-chipyard.sh "${{ steps.cache-conda-env.outputs.cache-hit }}"

0 commit comments

Comments
 (0)