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。

perf(release): cache win7 offline build with sccache

t8y2f70fe38a46b1
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 93bfe2a592..4aa3aca7df 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -553,6 +553,8 @@ jobs:
environment: release-signing
env:
CARGO_INCREMENTAL: "0"
+ RUSTC_WRAPPER: sccache
+ SCCACHE_GHA_ENABLED: ${{ secrets.SCCACHE_S3_BUCKET == '' && 'true' || 'false' }}
RUSTFLAGS: -C debuginfo=line-tables-only -C target-feature=+crt-static
VSIGN_CERT_HASH: ${{ vars.VSIGN_CERT_HASH }}
VSIGN_OPERATOR_SHA1: ${{ vars.VSIGN_OPERATOR_SHA1 }}
@@ -578,6 +580,36 @@ jobs:
toolchain: nightly-2026-07-22
components: rust-src
+ - name: Setup sccache
+ uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
+ with:
+ version: "v0.10.0"
+
+ - name: Configure S3 sccache
+ if: env.SCCACHE_GHA_ENABLED != 'true'
+ shell: bash
+ env:
+ CACHE_BUCKET: ${{ secrets.SCCACHE_S3_BUCKET }}
+ CACHE_ENDPOINT: ${{ secrets.SCCACHE_S3_ENDPOINT }}
+ CACHE_REGION: ${{ secrets.SCCACHE_S3_REGION }}
+ CACHE_KEY_PREFIX: ${{ secrets.SCCACHE_S3_KEY_PREFIX }}
+ CACHE_ACCESS_KEY_ID: ${{ secrets.SCCACHE_S3_ACCESS_KEY_ID }}
+ CACHE_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_S3_SECRET_ACCESS_KEY }}
+ run: |
+ {
+ echo "SCCACHE_BUCKET=${CACHE_BUCKET}"
+ echo "SCCACHE_ENDPOINT=${CACHE_ENDPOINT}"
+ echo "SCCACHE_REGION=${CACHE_REGION}"
+ echo "SCCACHE_S3_KEY_PREFIX=${CACHE_KEY_PREFIX}"
+ 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: Prepare Win7-compatible WebView2 loader
shell: pwsh
run: ./.github/scripts/prepare-webview2-win7-loader.ps1
@@ -659,6 +691,12 @@ jobs:
gh release upload "${env:GITHUB_REF_NAME}" $offlineName $checksumName `
--repo "${env:GITHUB_REPOSITORY}" --clobber
+ - name: Show sccache stats
+ if: always()
+ continue-on-error: true
+ shell: bash
+ run: ${SCCACHE_PATH} --show-stats
+
- name: Remove temporary VSign files
if: always()
shell: pwsh