From 6a2f93b547d5bf3abc6c157b5b7c8e8ff203ea0e Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 22 Apr 2021 02:10:05 +0000 Subject: [PATCH] chore: cache cargo --- .github/workflows/main.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 92e21ad..3cd4ac0 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -80,6 +80,15 @@ jobs: netpbm \ pango1.0-tools \ wamerican + - name: Cache Cargo + uses: actions/cache@v2 + env: + cache-name: cargo + with: + path: ~/.cargo + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./awsm/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- - name: Compile sledge run: | make build