From 0fbaba37e073315ce161367454173bd1468850e7 Mon Sep 17 00:00:00 2001 From: Jack Gabriel Acodili <112671361+acodili-jg@users.noreply.github.com> Date: Fri, 10 May 2024 22:55:34 +0800 Subject: [PATCH] Update build-pull-request.yml --- .github/workflows/build-pull-request.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index a714a60..e7823e8 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -12,6 +12,18 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 + - name: Initialize Caches + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-build-external-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-build-external- - name: Clippy run: | rustup \