From ccf28b3f4c306ec608a74f06b9e86601dbd299b3 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 28 Apr 2024 07:44:16 -0400 Subject: [PATCH] Hash the Cargo.toml instead of the Cargo.lock for cache We don't commit a .lock file because Physis is a library, so the .toml is the next best thing. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b688ff4..8822740 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} - name: Install dependencies run: | sudo apt-get update