You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by pi...@apache.org on 2025/03/05 08:17:19 UTC
(iggy) branch master updated: chore(ci): update CI workflows rust-cache version and key (#1608)
This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new dd916b90 chore(ci): update CI workflows rust-cache version and key (#1608)
dd916b90 is described below
commit dd916b90952b80465b88715feaaf942bf202ff1d
Author: Bartosz Cieśla <31...@users.noreply.github.com>
AuthorDate: Wed Mar 5 09:17:15 2025 +0100
chore(ci): update CI workflows rust-cache version and key (#1608)
Modified cache keys in each workflow to be more descriptive and
specific to the job, improving cache management and reducing
potential cache conflicts. Removed redundant cache steps in
release_cli.
---
.github/workflows/backwards_compatibility.yml | 2 +-
.github/workflows/coverage.yml | 2 +-
.github/workflows/performance.yml | 2 +-
.github/workflows/post_publish_server.yml | 2 +-
.github/workflows/publish_server.yml | 2 +-
.github/workflows/release_cli.yml | 7 +------
.github/workflows/test_daily.yml | 2 +-
.github/workflows/test_nightly.yml | 2 +-
.github/workflows/test_pr.yml | 6 +++---
9 files changed, 11 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/backwards_compatibility.yml b/.github/workflows/backwards_compatibility.yml
index c83a876f..b3c5e32e 100644
--- a/.github/workflows/backwards_compatibility.yml
+++ b/.github/workflows/backwards_compatibility.yml
@@ -88,7 +88,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "backwards-compatibility"
- name: Build iggy-server (origin/master)
run: IGGY_CI_BUILD=true cargo build
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 66ec561b..0002b3f9 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -21,7 +21,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "coverage"
- name: Install gnome-keyring and keyutils on Linux
run: |
diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml
index c920753a..6e61f83b 100644
--- a/.github/workflows/performance.yml
+++ b/.github/workflows/performance.yml
@@ -21,7 +21,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "performance"
- name: Checkout code
uses: actions/checkout@v4
diff --git a/.github/workflows/post_publish_server.yml b/.github/workflows/post_publish_server.yml
index ed5853e7..2fdbed0f 100644
--- a/.github/workflows/post_publish_server.yml
+++ b/.github/workflows/post_publish_server.yml
@@ -16,7 +16,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "post-publish-server"
- name: Build binary
run: cargo build
diff --git a/.github/workflows/publish_server.yml b/.github/workflows/publish_server.yml
index 974aed46..8f8b0c14 100644
--- a/.github/workflows/publish_server.yml
+++ b/.github/workflows/publish_server.yml
@@ -101,7 +101,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "publish-server-${{ matrix.platform.target }}"
- name: Install musl-tools on Linux
run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools
diff --git a/.github/workflows/release_cli.yml b/.github/workflows/release_cli.yml
index f318caa2..b3ab9112 100644
--- a/.github/workflows/release_cli.yml
+++ b/.github/workflows/release_cli.yml
@@ -55,7 +55,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "release-cli-${{ matrix.platform.target }}"
- name: Install musl-tools on Linux
run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools
@@ -114,11 +114,6 @@ jobs:
with:
fetch-depth: 0
- - name: Cache cargo & target directories
- uses: Swatinem/rust-cache@v2
- with:
- key: "v2"
-
- name: Download all artifacts
uses: actions/download-artifact@v4
diff --git a/.github/workflows/test_daily.yml b/.github/workflows/test_daily.yml
index 42c53ae0..9793b54b 100644
--- a/.github/workflows/test_daily.yml
+++ b/.github/workflows/test_daily.yml
@@ -53,7 +53,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "test-daily-${{ matrix.platform.target }}"
- name: Configure Git
run: |
diff --git a/.github/workflows/test_nightly.yml b/.github/workflows/test_nightly.yml
index 024728a4..51937a51 100644
--- a/.github/workflows/test_nightly.yml
+++ b/.github/workflows/test_nightly.yml
@@ -54,7 +54,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "test-nightly-${{ matrix.platform.target }}"
- name: Configure Git
run: |
diff --git a/.github/workflows/test_pr.yml b/.github/workflows/test_pr.yml
index 0795e3c1..01367fa5 100644
--- a/.github/workflows/test_pr.yml
+++ b/.github/workflows/test_pr.yml
@@ -66,7 +66,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "test-pr-x86_64-unknown-linux-musl"
- name: Install musl-tools, gnome-keyring and keyutils on Linux
run: |
@@ -116,7 +116,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "test-pr-aarch64-apple-darwin"
- name: Build binary
run: cargo build --verbose --target aarch64-apple-darwin
@@ -143,7 +143,7 @@ jobs:
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
with:
- key: "v2"
+ key: "test-pr-x86_64-pc-windows-msvc"
- name: Build iggy package
run: cargo build --verbose --target x86_64-pc-windows-msvc -p iggy