This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/branch-1.11 by this push:
     new b3a797b91 AVRO-3501: Rust: Cache ~/.cargo and target folder for faster 
builds (#1661)
b3a797b91 is described below

commit b3a797b91e483eab72aefebbbb6ba70abdc762cb
Author: Martin Grigorov <[email protected]>
AuthorDate: Thu Apr 21 16:10:14 2022 +0300

    AVRO-3501: Rust: Cache ~/.cargo and target folder for faster builds (#1661)
    
    Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
    (cherry picked from commit 5cab566ce2685ec4ad933a2cdd9793d26e538e8d)
---
 .github/workflows/test-lang-rust-ci.yml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/.github/workflows/test-lang-rust-ci.yml 
b/.github/workflows/test-lang-rust-ci.yml
index e89f4ca65..a18370963 100644
--- a/.github/workflows/test-lang-rust-ci.yml
+++ b/.github/workflows/test-lang-rust-ci.yml
@@ -49,6 +49,21 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v2
 
+      - name: Cache Cargo
+        uses: actions/cache@v2
+        with:
+          # these represent dependencies downloaded by cargo
+          # and thus do not depend on the OS, arch nor rust version.
+          path: ~/.cargo
+          key: cargo-cache1-
+      - name: Cache Rust dependencies
+        uses: actions/cache@v2
+        with:
+          # these represent compiled steps of both dependencies and avro
+          # and thus are specific for a particular OS, arch and rust version.
+          path: ~/target
+          key: ${{ runner.os }}-target-cache1-${{ matrix.rust }}-
+
       - name: Rust Toolchain
         uses: actions-rs/toolchain@v1
         with:
@@ -96,6 +111,21 @@ jobs:
           toolchain: stable
           override: true
 
+      - name: Cache Cargo
+        uses: actions/cache@v2
+        with:
+          # these represent dependencies downloaded by cargo
+          # and thus do not depend on the OS, arch nor rust version.
+          path: ~/.cargo
+          key: cargo-cache1-
+      - name: Cache Rust dependencies
+        uses: actions/cache@v2
+        with:
+          # these represent compiled steps of both dependencies and avro
+          # and thus are specific for a particular OS, arch and rust version.
+          path: ~/target
+          key: ${{ runner.os }}-target-cache1-stable-
+
       - name: Cache Local Maven Repository
         uses: actions/cache@v2
         with:

Reply via email to