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。

ci(release): stabilize rust cache keys

t8y21c53e68269ce
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 689cfac4f6..6f013cf7a7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -38,7 +38,7 @@ jobs:
uses: swatinem/rust-cache@v2
with:
workspaces: './ -> target'
- shared-key: release-x86_64-unknown-linux-gnu
+ shared-key: ci-x86_64-unknown-linux-gnu
- name: Install system dependencies (Linux)
run: |
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4e198f27d7..fd48fb00df 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -45,18 +45,26 @@ jobs:
with:
targets: ${{ matrix.target }}
- - name: Compute dependency hash (excludes app version from Cargo.lock)
+ - name: Compute Rust dependency hash
id: deps-hash
shell: bash
run: |
- hash=$(grep -v '^version = ' Cargo.lock | sha256sum | cut -d' ' -f1)
- echo "hash=${hash:0:20}" >> "$GITHUB_OUTPUT"
+ {
+ find . -name Cargo.toml -not -path './target/*' -print0 \
+ | sort -z \
+ | xargs -0 sed -E '/^version = /d'
+ grep -v '^version = ' Cargo.lock
+ } | sha256sum | cut -d' ' -f1 | {
+ read -r hash
+ echo "hash=${hash:0:20}" >> "$GITHUB_OUTPUT"
+ }
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './ -> target'
shared-key: release-${{ matrix.target }}-${{ steps.deps-hash.outputs.hash }}
+ add-rust-environment-hash-key: false
cache-on-failure: true
- name: Install system dependencies (macOS)