From 1a73c662a8e670e1d3bc8b23258ef995888be2b6 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 21 May 2023 23:27:40 +0800 Subject: [PATCH] ci: cache dependencies. --- .gitea/workflows/built-bin.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/built-bin.yaml b/.gitea/workflows/built-bin.yaml index 506c77a..4cb043e 100644 --- a/.gitea/workflows/built-bin.yaml +++ b/.gitea/workflows/built-bin.yaml @@ -37,12 +37,6 @@ jobs: toolchain: stable override: true - - id: tag - uses: https://github.com/Maxyme/get-release-or-tag@v2 - - - name: Build - run: cargo build --release - - name: Cache Dependencies uses: https://github.com/actions/cache@v3 with: @@ -52,7 +46,13 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ steps.restore-dependencies.outputs.cache-primarily-key }} + key: ${{ steps.restore-dependencies.outputs.cache-primary-key }} + + - id: tag + uses: https://github.com/Maxyme/get-release-or-tag@v2 + + - name: Build + run: cargo build --release - name: Cache Executable Binary uses: https://github.com/actions/cache@v3