From e7f1721a550e67f81da9c034611b83ed0bd6d4e9 Mon Sep 17 00:00:00 2001 From: Grant Lemons Date: Thu, 2 Jan 2025 11:00:19 -0600 Subject: [PATCH] cicd: enable caching through Swatinem/rust-cache@v2 --- .github/workflows/build_harper_binaries.yml | 4 ++++ .github/workflows/build_web.yml | 4 ++++ .github/workflows/package_vscode_plugin.yml | 4 ++++ .github/workflows/precommit.yml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/.github/workflows/build_harper_binaries.yml b/.github/workflows/build_harper_binaries.yml index a6222aae..08d78f35 100644 --- a/.github/workflows/build_harper_binaries.yml +++ b/.github/workflows/build_harper_binaries.yml @@ -89,6 +89,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Caching + uses: Swatinem/rust-cache@v2 + with: + shared-key: "harper" - name: Build binary uses: houseabsolute/actions-rust-cross@v0 with: diff --git a/.github/workflows/build_web.yml b/.github/workflows/build_web.yml index 532384bf..db7a40e8 100644 --- a/.github/workflows/build_web.yml +++ b/.github/workflows/build_web.yml @@ -11,6 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Setup Caching + uses: Swatinem/rust-cache@v2 + with: + shared-key: "harper" - uses: redhat-actions/buildah-build@v2 with: image: web diff --git a/.github/workflows/package_vscode_plugin.yml b/.github/workflows/package_vscode_plugin.yml index 8c8dc184..85a2ca6d 100644 --- a/.github/workflows/package_vscode_plugin.yml +++ b/.github/workflows/package_vscode_plugin.yml @@ -31,6 +31,10 @@ jobs: runs-on: ${{ matrix.platform.os }} steps: - uses: actions/checkout@v4 + - name: Setup Caching + uses: Swatinem/rust-cache@v2 + with: + shared-key: "harper" - uses: extractions/setup-just@v2 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index 3fa72394..a01df07e 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -14,6 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Setup Caching + uses: Swatinem/rust-cache@v2 + with: + shared-key: "harper" - uses: extractions/setup-just@v2 - uses: actions/setup-node@v4 with: