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): add swap to arm linux runner for build memory peak

t8y2cb49766810d4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index fbb02fccca..7c5b9b77d6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -258,6 +258,19 @@ jobs:
# Bundle GTK input-method modules from the same Jammy ABI baseline
# instead of loading potentially incompatible modules from the host.
sudo apt-get install -y fcitx5-frontend-gtk3 ibus-gtk3 libwebkit2gtk-4.1-dev libgtk-3-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev xdg-utils lld
+ # The ARM hosted runner has 16 GB RAM and no swap; the serialized
+ # release build plus the final lld link of the dbx binary still
+ # exhausts memory and the runner loses communication with the
+ # server. Back it with a swapfile so the link peak pages to disk
+ # instead of starving the runner agent.
+ if [ "${{ matrix.platform }}" = "ubuntu-22.04-arm" ]; then
+ df -h /
+ sudo fallocate -l 14G /mnt/swapfile || sudo dd if=/dev/zero of=/mnt/swapfile bs=1M count=14336
+ sudo chmod 600 /mnt/swapfile
+ sudo mkswap /mnt/swapfile
+ sudo swapon /mnt/swapfile
+ free -h
+ fi
- name: Prepare Wayland-capable AppImage bundler
if: startsWith(matrix.platform, 'ubuntu')