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(oracle): build windows-x64 agent with Go 1.20 for Win7 support

zipg96d16b173b99
diff --git a/.github/workflows/agents-release.yml b/.github/workflows/agents-release.yml
index c5ea324149..2d1685d62f 100644
--- a/.github/workflows/agents-release.yml
+++ b/.github/workflows/agents-release.yml
@@ -179,7 +179,6 @@ jobs:
["linux-aarch64"]="linux/arm64"
["linux-x64"]="linux/amd64"
["windows-aarch64"]="windows/arm64"
- ["windows-x64"]="windows/amd64"
)
for platform in "${!TARGETS[@]}"; do
IFS=/ read -r goos goarch <<< "${TARGETS[$platform]}"
@@ -191,6 +190,20 @@ jobs:
CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" go build -trimpath -ldflags="-s -w" -o "$output" .
done
ls -lh ../../../release-native
+ # Go 1.20 is the last release that supports Windows 7; keep other targets on Go 1.22.
+ - name: Set up Go for Windows 7-compatible Oracle agent
+ uses: actions/setup-go@v5
+ with:
+ go-version: "1.20.14"
+ cache-dependency-path: agents/drivers/oracle-go/go.sum
+ - name: Build Windows 7-compatible Oracle agent
+ shell: bash
+ working-directory: agents/drivers/oracle-go
+ run: |
+ output="../../../release-native/dbx-agent-oracle-windows-x64.exe"
+ CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o "$output" .
+ go version -m "$output" | tee /tmp/oracle-windows-x64-build-info.txt
+ grep -q ': go1\.20\.14$' /tmp/oracle-windows-x64-build-info.txt
- uses: actions/upload-artifact@v4
with:
name: oracle-native
diff --git a/agents/drivers/oracle-go/go.mod b/agents/drivers/oracle-go/go.mod
index 9d4188c2cf..225f55818a 100644
--- a/agents/drivers/oracle-go/go.mod
+++ b/agents/drivers/oracle-go/go.mod
@@ -1,6 +1,6 @@
module github.com/t8y2/dbx/agents/drivers/oracle-go
-go 1.22
+go 1.20
require github.com/sijms/go-ora/v2 v2.9.0