Skip to content

Commit 0d0ffd4

Browse files
committed
fix(ci): add cargo cache
1 parent 7808981 commit 0d0ffd4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ jobs:
2828
echo "CARGO_HOME=$HOME/.cargo" >> $GITHUB_ENV
2929
echo "RUSTUP_HOME=$HOME/.rustup" >> $GITHUB_ENV
3030
31+
- name: Cache Cargo dependencies
32+
uses: actions/cache@v4
33+
with:
34+
path: |
35+
~/.cargo/registry/index
36+
~/.cargo/registry/cache
37+
~/.cargo/git/db
38+
target
39+
key: ${{ runner.os }}-cargo-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
40+
restore-keys: |
41+
${{ runner.os }}-cargo-${{ matrix.toolchain }}-
42+
3143
- name: Build frontend
3244
working-directory: rustmail_panel
3345
run: trunk build --release --dist ../rustmail/static --config Trunk.toml

0 commit comments

Comments
 (0)