From 225323d5d257cd5585449f846a4f71682a2fe759 Mon Sep 17 00:00:00 2001 From: OMGeeky <39029799+OMGeeky@users.noreply.github.com> Date: Sun, 2 Apr 2023 14:02:41 +0200 Subject: [PATCH] Update dispatch.yml (caching) --- .github/workflows/dispatch.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 37fb714..7c30be7 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -18,7 +18,19 @@ jobs: archive: tar.gz tar.xz tar.zst # - target: x86_64-apple-darwin # archive: zip - steps: + steps: + - name: Set up cargo cache + uses: actions/cache@v3 + continue-on-error: false + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo- - uses: actions/checkout@master - name: Compile id: compile @@ -27,7 +39,6 @@ jobs: RUSTTARGET: ${{ matrix.target }} ARCHIVE_TYPES: ${{ matrix.archive }} UPLOAD_MODE: none - CARGO_NET_GIT_FETCH_WITH_CLI: true SRC_DIR: "" - name: Upload artifact uses: actions/upload-artifact@v3