From f84aedafdf4a1673c787e0fa51e0c2b4e1e187b8 Mon Sep 17 00:00:00 2001 From: Yuki Sawa Date: Sat, 4 Nov 2023 21:10:52 -0700 Subject: [PATCH] cache target dir --- .github/workflows/release.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e658db9..b48ac3f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,6 +39,13 @@ jobs: - name: Print Runner OS run: echo "Runner OS is ${{ runner.os }}" + - name: Cache target dir + uses: actions/cache@v3 + with: + path: | + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Build Release run: cargo build --release