You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/04/21 11:52:26 UTC

[avro] branch add-caching-for-rust-ci updated (98551246b -> b1aa8789f)

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

mgrigorov pushed a change to branch add-caching-for-rust-ci
in repository https://gitbox.apache.org/repos/asf/avro.git


 discard 98551246b Rust: Cache ~/.cargo and target folder for faster builds
     new b1aa8789f AVRO-3501: Rust: Cache ~/.cargo and target folder for faster builds

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (98551246b)
            \
             N -- N -- N   refs/heads/add-caching-for-rust-ci (b1aa8789f)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/test-lang-rust-ci.yml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)


[avro] 01/01: AVRO-3501: Rust: Cache ~/.cargo and target folder for faster builds

Posted by mg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch add-caching-for-rust-ci
in repository https://gitbox.apache.org/repos/asf/avro.git

commit b1aa8789f12210d1011e1dcb2c751c10c35bf945
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Thu Apr 21 14:47:48 2022 +0300

    AVRO-3501: Rust: Cache ~/.cargo and target folder for faster builds
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
---
 .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: