Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(ci): keep sccache server alive for post-build stats

t8y2cf03de122a6b
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1552ad196e..ca10989f61 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -71,6 +71,9 @@ jobs:
echo "SCCACHE_S3_USE_SSL=true"
echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}"
echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}"
+ # Keep the server alive through post-compile test/lint phases so
+ # "Show sccache stats" reflects the real counters.
+ echo "SCCACHE_IDLE_TIMEOUT=0"
} >> "$GITHUB_ENV"
- name: Rust cache
@@ -378,6 +381,9 @@ jobs:
echo "SCCACHE_S3_USE_SSL=true"
echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}"
echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}"
+ # Keep the server alive through post-compile test/lint phases so
+ # "Show sccache stats" reflects the real counters.
+ echo "SCCACHE_IDLE_TIMEOUT=0"
} >> "$GITHUB_ENV"
- name: Rust cache
@@ -455,6 +461,9 @@ jobs:
echo "SCCACHE_S3_USE_SSL=true"
echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}"
echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}"
+ # Keep the server alive through post-compile test/lint phases so
+ # "Show sccache stats" reflects the real counters.
+ echo "SCCACHE_IDLE_TIMEOUT=0"
} >> "$GITHUB_ENV"
- name: Rust cache
diff --git a/.github/workflows/mcp-release.yml b/.github/workflows/mcp-release.yml
index aa6fc7da92..3f8f7dfdd1 100644
--- a/.github/workflows/mcp-release.yml
+++ b/.github/workflows/mcp-release.yml
@@ -343,6 +343,9 @@ jobs:
echo "SCCACHE_S3_USE_SSL=true"
echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}"
echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}"
+ # Keep the server alive through the post-compile packaging tail so
+ # "Show sccache stats" reflects the real counters.
+ echo "SCCACHE_IDLE_TIMEOUT=0"
} >> "$GITHUB_ENV"
- name: Rust cache
@@ -561,6 +564,9 @@ jobs:
echo "SCCACHE_S3_USE_SSL=true"
echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}"
echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}"
+ # Keep the server alive through the post-compile packaging tail so
+ # "Show sccache stats" reflects the real counters.
+ echo "SCCACHE_IDLE_TIMEOUT=0"
} >> "$GITHUB_ENV"
- name: Rust cache
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4397cc56e1..867f740dfd 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -180,6 +180,10 @@ jobs:
echo "SCCACHE_S3_USE_SSL=true"
echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}"
echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}"
+ # Linking, bundling, and signing run for 30+ minutes after the last
+ # rustc call; the server's 10-minute default idle timeout would
+ # exit first and zero the counters shown by "Show sccache stats".
+ echo "SCCACHE_IDLE_TIMEOUT=0"
} >> "$GITHUB_ENV"
- name: Compute Rust dependency hash
@@ -322,6 +326,10 @@ jobs:
echo "SCCACHE_S3_USE_SSL=true"
echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}"
echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}"
+ # Linking, bundling, and signing run for 30+ minutes after the last
+ # rustc call; the server's 10-minute default idle timeout would
+ # exit first and zero the counters shown by "Show sccache stats".
+ echo "SCCACHE_IDLE_TIMEOUT=0"
} >> "$GITHUB_ENV"
- name: Compute Rust dependency hash