Skip to content

Commit 14badd5

Browse files
committed
Try caching entire Rust toolchain
1 parent 401de78 commit 14badd5

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,6 @@ jobs:
5959
echo "Using Rust commit: $RUST_COMMIT"
6060
echo "RUST_COMMIT=$RUST_COMMIT" >> $GITHUB_ENV
6161
62-
# This is a shortcut to allow caching. If we don't manually check out Rust here,
63-
# the Athena CLI tool will refuse to check it out since the cache will have
64-
# already restored files into the same directory.
65-
# This command won't check out submodules recursively. The cache restore will do
66-
# this for us, saving time.
67-
- name: Check out Rust toolchain
68-
uses: actions/checkout@v4
69-
with:
70-
repository: rust-lang/rust
71-
ref: ${{ env.RUST_COMMIT }}
72-
path: toolchain/rust
73-
7462
- uses: actions/cache@v4
7563
name: Cache Athena build
7664
with:
@@ -86,11 +74,11 @@ jobs:
8674
name: Cache Rust toolchain
8775
with:
8876
path: |
89-
toolchain/rust/build
90-
toolchain/rust/library
91-
toolchain/rust/src/doc
92-
toolchain/rust/src/llvm-project
93-
toolchain/rust/src/tools
77+
toolchain/rust/**
78+
# toolchain/rust/library
79+
# toolchain/rust/src/doc
80+
# toolchain/rust/src/llvm-project
81+
# toolchain/rust/src/tools
9482
key: ${{ matrix.cachekey }}-rusttoolchain-${{ env.RUST_COMMIT }}
9583

9684
- name: Build

0 commit comments

Comments
 (0)