Skip to content

Commit ea03325

Browse files
cache rustup toolchain too
1 parent 2f3b6ab commit ea03325

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,18 @@ jobs:
7676
echo "OS=${os:-'unknown'}" >> $GITHUB_ENV
7777
echo "ARCH=${arch:-'unknown'}" >> $GITHUB_ENV
7878
79+
- name: Cache rustup toolchain
80+
uses: actions/cache@v4
81+
with:
82+
path: |
83+
~/.rustup
84+
~/.cargo/bin
85+
key: ${{ runner.os }}-${{ matrix.platform.target }}-rustup-${{ hashFiles('rust-toolchain.toml') }}
86+
restore-keys: |
87+
${{ runner.os }}-${{ matrix.platform.target }}-rustup-
88+
7989
- name: Cache Homebrew packages (macOS)
80-
if: runner.os == 'macOS'
90+
if: ${{ runner.os == 'macOS' }}
8191
uses: actions/cache@v4
8292
with:
8393
path: |

0 commit comments

Comments
 (0)