Skip to content

Commit 401de78

Browse files
committed
Manually check out Rust toolchain in workflow
1 parent 3f25209 commit 401de78

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
uses: actions/checkout@v4
5252
with:
5353
repository: athenavm/athena
54-
ref: rust-commit-hash
5554
path: athena
5655

5756
- name: Get Rust commit
@@ -60,6 +59,18 @@ jobs:
6059
echo "Using Rust commit: $RUST_COMMIT"
6160
echo "RUST_COMMIT=$RUST_COMMIT" >> $GITHUB_ENV
6261
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+
6374
- uses: actions/cache@v4
6475
name: Cache Athena build
6576
with:

0 commit comments

Comments
 (0)