@@ -169,7 +169,7 @@ jobs:
169169 - uses : actions/checkout@v7.0.1
170170 - uses : actions/setup-go@v7.0.0
171171 with :
172- go-version : " 1.20.14 "
172+ go-version : " 1.27.3 "
173173 - name : Test Oracle native agent
174174 working-directory : agents/drivers/oracle-go
175175 run : go test ./...
@@ -195,20 +195,20 @@ jobs:
195195 CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" go build -trimpath -ldflags="-s -w" -o "$output" .
196196 done
197197 ls -lh ../../../release-native
198- # Go 1.20 is the last release that supports Windows 7; keep other targets on Go 1.22 .
199- - name : Set up Go for Windows 7-compatible Oracle agent
198+ # Windows x64 uses the same current stable Go toolchain as the other targets.
199+ - name : Set up Go for Windows x64 Oracle agent
200200 uses : actions/setup-go@v7.0.0
201201 with :
202- go-version : " 1.20.14 "
202+ go-version : " 1.27.3 "
203203 cache-dependency-path : agents/drivers/oracle-go/go.sum
204- - name : Build Windows 7-compatible Oracle agent
204+ - name : Build Windows x64 Oracle agent
205205 shell : bash
206206 working-directory : agents/drivers/oracle-go
207207 run : |
208208 output="../../../release-native/dbx-agent-oracle-windows-x64.exe"
209209 CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o "$output" .
210210 go version -m "$output" | tee /tmp/oracle-windows-x64-build-info.txt
211- grep -q ': go1\.20\.14 $' /tmp/oracle-windows-x64-build-info.txt
211+ grep -q ': go1\.27\.3 $' /tmp/oracle-windows-x64-build-info.txt
212212 - uses : actions/upload-artifact@v7.0.2
213213 with :
214214 name : oracle-native
@@ -225,7 +225,7 @@ jobs:
225225 - uses : actions/checkout@v7.0.1
226226 - uses : actions/setup-go@v7.0.0
227227 with :
228- # godror 需要 Go >= 1.21; thin 的 Windows 7 兼容线仍由 build-oracle-native 用 Go 1.20 构建 。
228+ # godror 与 thin 变体使用同一当前稳定 Go 工具链 。
229229 go-version : " 1.27.x"
230230 cache-dependency-path : agents/drivers/oracle-go/go.sum
231231 - name : Prepare MinGW-w64 and the Oracle Instant Client
@@ -290,7 +290,7 @@ jobs:
290290 run : |
291291 mkdir -p ../../../release-native
292292 output="../../../release-native/dbx-agent-oracle-oci-windows-x64.exe"
293- # go.mod 的 go 指令保持 1.20(thin 的 Windows 7 兼容线);OCI 变体要求更高 ,
293+ # OCI 变体的构建目标要求更高的 Go 语言基线 ,
294294 # 因此允许就地更新 go.mod —— 只影响本任务的检出目录,不会被提交。
295295 go build -mod=mod -tags oci -trimpath -ldflags="-s -w" -o "$output" .
296296 ls -lh ../../../release-native
@@ -307,7 +307,7 @@ jobs:
307307 - uses : actions/checkout@v7.0.1
308308 - uses : actions/setup-go@v7.0.0
309309 with :
310- go-version : " 1.20.14 "
310+ go-version : " 1.27.3 "
311311 - name : Test Xugu native agent
312312 working-directory : agents/drivers/xugu
313313 run : GONOSUMDB=gitee.com/XuguDB/go-xugu-driver go test ./...
@@ -347,7 +347,7 @@ jobs:
347347 - uses : actions/checkout@v7.0.1
348348 - uses : actions/setup-go@v7.0.0
349349 with :
350- go-version : " 1.20.14 "
350+ go-version : " 1.27.3 "
351351 - name : Test RabbitMQ native agent
352352 working-directory : agents/drivers/rabbitmq
353353 run : go test ./...
@@ -373,20 +373,20 @@ jobs:
373373 CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" go build -trimpath -ldflags="-s -w" -o "$output" .
374374 done
375375 ls -lh ../../../release-native
376- # Go 1.20 is the last release that supports Windows 7; keep other targets on Go 1.22 .
377- - name : Set up Go for Windows 7-compatible RabbitMQ agent
376+ # Windows x64 uses the same current stable Go toolchain as the other targets.
377+ - name : Set up Go for Windows x64 RabbitMQ agent
378378 uses : actions/setup-go@v7.0.0
379379 with :
380- go-version : " 1.20.14 "
380+ go-version : " 1.27.3 "
381381 cache-dependency-path : agents/drivers/rabbitmq/go.sum
382- - name : Build Windows 7-compatible RabbitMQ agent
382+ - name : Build Windows x64 RabbitMQ agent
383383 shell : bash
384384 working-directory : agents/drivers/rabbitmq
385385 run : |
386386 output="../../../release-native/dbx-agent-rabbitmq-windows-x64.exe"
387387 CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o "$output" .
388388 go version -m "$output" | tee /tmp/rabbitmq-windows-x64-build-info.txt
389- grep -q ': go1\.20\.14 $' /tmp/rabbitmq-windows-x64-build-info.txt
389+ grep -q ': go1\.27\.3 $' /tmp/rabbitmq-windows-x64-build-info.txt
390390 - uses : actions/upload-artifact@v7.0.2
391391 with :
392392 name : rabbitmq-native
@@ -680,7 +680,7 @@ jobs:
680680 - uses : actions/checkout@v7.0.1
681681 - uses : actions/setup-go@v7.0.0
682682 with :
683- go-version : " 1.20.14 "
683+ go-version : " 1.27.3 "
684684 - name : Test Kingbase native agent
685685 working-directory : agents/drivers/kingbase-go
686686 run : go test ./...
@@ -900,29 +900,22 @@ jobs:
900900 platform : windows-aarch64
901901 extension : .exe
902902 - runner : windows-2022
903- target : x86_64-win7 -windows-msvc
903+ target : x86_64-pc -windows-msvc
904904 platform : windows-x64
905905 extension : .exe
906- win7 : true
907906 runs-on : ${{ matrix.runner }}
908907 env :
909- RUSTUP_TOOLCHAIN : ${{ matrix.win7 == true && 'nightly-2026-10-25' || ' 1.99.1' }}
908+ RUSTUP_TOOLCHAIN : 1.99.1
910909 CARGO_INCREMENTAL : " 0"
911910 CARGO_TARGET_DIR : ${{ github.workspace }}/target/duckdb-driver
912911 RUSTC_WRAPPER : sccache
913912 SCCACHE_GHA_ENABLED : ${{ secrets.SCCACHE_S3_BUCKET == '' && 'true' || 'false' }}
914913 steps :
915914 - uses : actions/checkout@v7.0.1
916915 - uses : dtolnay/rust-toolchain@1.99.1
917- if : runner.os != 'Linux' && matrix.win7 != true
916+ if : runner.os != 'Linux'
918917 with :
919918 targets : ${{ matrix.target }}
920- - name : Setup Rust for Windows 7
921- if : matrix.win7 == true
922- uses : dtolnay/rust-toolchain@nightly
923- with :
924- toolchain : ${{ env.RUSTUP_TOOLCHAIN }}
925- components : rust-src
926919 - uses : actions/setup-python@v7.1.0
927920 if : runner.os == 'Windows'
928921 with :
@@ -965,7 +958,7 @@ jobs:
965958 run : |
966959 if [ "${{ runner.os }}" = "Windows" ]; then
967960 # An env RUSTFLAGS replaces .cargo/config.toml target rustflags; keep
968- # the 8 MiB main-thread stack of the DBX app for the Win7 driver too.
961+ # the 8 MiB main-thread stack of the DBX app for the Windows driver too.
969962 export RUSTFLAGS="${RUSTFLAGS:+$RUSTFLAGS }-C target-feature=+crt-static -C link-arg=/STACK:8388608"
970963 fi
971964 if [ -n "${{ matrix.manylinux_image }}" ]; then
@@ -1013,18 +1006,13 @@ jobs:
10131006 fi
10141007 '
10151008 else
1016- BUILD_STD=()
1017- if [ "${{ matrix.win7 }}" = "true" ]; then
1018- BUILD_STD=(-Z build-std=std,panic_abort)
1019- fi
10201009 pushd agents/drivers/duckdb
10211010 cargo build \
10221011 --manifest-path Cargo.toml \
10231012 --locked \
10241013 --release \
10251014 --bin dbx-duckdb-driver \
1026- --target "${{ matrix.target }}" \
1027- "${BUILD_STD[@]}"
1015+ --target "${{ matrix.target }}"
10281016 popd
10291017 fi
10301018 mkdir -p release-native
@@ -1135,30 +1123,23 @@ jobs:
11351123 platform : windows-aarch64
11361124 extension : .exe
11371125 - runner : windows-2022
1138- target : x86_64-win7 -windows-msvc
1126+ target : x86_64-pc -windows-msvc
11391127 platform : windows-x64
11401128 extension : .exe
11411129 smoke : true
1142- win7 : true
11431130 runs-on : ${{ matrix.runner }}
11441131 env :
1145- RUSTUP_TOOLCHAIN : ${{ matrix.win7 == true && 'nightly-2026-10-25' || ' 1.99.1' }}
1132+ RUSTUP_TOOLCHAIN : 1.99.1
11461133 CARGO_INCREMENTAL : " 0"
11471134 CARGO_TARGET_DIR : ${{ github.workspace }}/target/tdengine-driver
11481135 RUSTC_WRAPPER : sccache
11491136 SCCACHE_GHA_ENABLED : ${{ secrets.SCCACHE_S3_BUCKET == '' && 'true' || 'false' }}
11501137 steps :
11511138 - uses : actions/checkout@v7.0.1
11521139 - uses : dtolnay/rust-toolchain@1.99.1
1153- if : runner.os != 'Linux' && matrix.win7 != true
1140+ if : runner.os != 'Linux'
11541141 with :
11551142 targets : ${{ matrix.target }}
1156- - name : Setup Rust for Windows 7
1157- if : matrix.win7 == true
1158- uses : dtolnay/rust-toolchain@nightly
1159- with :
1160- toolchain : ${{ env.RUSTUP_TOOLCHAIN }}
1161- components : rust-src
11621143 - uses : mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
11631144 with :
11641145 version : " v0.16.0"
@@ -1240,17 +1221,12 @@ jobs:
12401221 fi
12411222 '
12421223 else
1243- BUILD_STD=()
1244- if [ "${{ matrix.win7 }}" = "true" ]; then
1245- BUILD_STD=(-Z build-std=std,panic_abort)
1246- fi
12471224 cargo build \
12481225 --manifest-path agents/drivers/tdengine/Cargo.toml \
12491226 --locked \
12501227 --release \
12511228 --bin dbx-tdengine-driver \
1252- --target "${{ matrix.target }}" \
1253- "${BUILD_STD[@]}"
1229+ --target "${{ matrix.target }}"
12541230 fi
12551231 mkdir -p release-native
12561232 cp \
0 commit comments