mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-06-05 22:19:35 +08:00
Compare commits
20 Commits
v0.5.5
...
release/0.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d60ac90efe | ||
|
|
20964bcedf | ||
|
|
462ca57907 | ||
|
|
2733596a5d | ||
|
|
6918b56ed9 | ||
|
|
1afb8850ad | ||
|
|
3284eeba17 | ||
|
|
6156884455 | ||
|
|
f477feab2f | ||
|
|
e76e174bfe | ||
|
|
b904c0b107 | ||
|
|
c02e7c12e8 | ||
|
|
a87c801e66 | ||
|
|
7f00139847 | ||
|
|
78c5351399 | ||
|
|
e3b142053f | ||
|
|
3ca898a950 | ||
|
|
84688e995a | ||
|
|
4d0940636d | ||
|
|
26b79adc5f |
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -137,10 +137,10 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
msystem: MINGW64
|
msystem: UCRT64
|
||||||
update: true
|
update: true
|
||||||
install: >-
|
install: >-
|
||||||
mingw-w64-x86_64-gcc
|
mingw-w64-ucrt-x86_64-gcc
|
||||||
|
|
||||||
- name: Configure DuckDB CGO Toolchain (Windows AMD64)
|
- name: Configure DuckDB CGO Toolchain (Windows AMD64)
|
||||||
if: ${{ matrix.build_optional_agents && matrix.platform == 'windows/amd64' }}
|
if: ${{ matrix.build_optional_agents && matrix.platform == 'windows/amd64' }}
|
||||||
@@ -164,28 +164,26 @@ jobs:
|
|||||||
$msys2Location = "${{ steps.msys2_duckdb.outputs['msys2-location'] }}"
|
$msys2Location = "${{ steps.msys2_duckdb.outputs['msys2-location'] }}"
|
||||||
$candidateBins = @()
|
$candidateBins = @()
|
||||||
if (-not [string]::IsNullOrWhiteSpace($msys2Location)) {
|
if (-not [string]::IsNullOrWhiteSpace($msys2Location)) {
|
||||||
$candidateBins += Join-Path $msys2Location 'mingw64\bin'
|
$candidateBins += Join-Path $msys2Location 'ucrt64\bin'
|
||||||
}
|
}
|
||||||
$candidateBins += @(
|
$candidateBins += @(
|
||||||
'C:\msys64\mingw64\bin',
|
'C:\msys64\ucrt64\bin',
|
||||||
'C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin'
|
'D:\a\_temp\msys64\ucrt64\bin'
|
||||||
)
|
)
|
||||||
$candidateBins = @($candidateBins | Select-Object -Unique)
|
$candidateBins = @($candidateBins | Select-Object -Unique)
|
||||||
|
|
||||||
$mingwBin = Find-MingwBin $candidateBins
|
$mingwBin = Find-MingwBin $candidateBins
|
||||||
if (-not $mingwBin) {
|
if (-not $mingwBin) {
|
||||||
if ($msys2Outcome -ne 'success') {
|
if ($msys2Outcome -ne 'success') {
|
||||||
Write-Warning "⚠️ MSYS2 安装步骤结果为 $msys2Outcome,回退到本机探测/Chocolatey 安装 MinGW"
|
Write-Warning "⚠️ MSYS2 安装步骤结果为 $msys2Outcome,回退到 UCRT64 本机路径探测"
|
||||||
} else {
|
} else {
|
||||||
Write-Warning "⚠️ MSYS2 已执行,但未找到 gcc/g++,回退到本机探测/Chocolatey 安装 MinGW"
|
Write-Warning "⚠️ MSYS2 已执行,但未找到 UCRT64 gcc/g++,回退到本机路径探测"
|
||||||
}
|
}
|
||||||
|
|
||||||
choco install mingw --yes --no-progress
|
|
||||||
$mingwBin = Find-MingwBin $candidateBins
|
$mingwBin = Find-MingwBin $candidateBins
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-not $mingwBin) {
|
if (-not $mingwBin) {
|
||||||
Write-Error "❌ 未找到可用的 DuckDB 编译器。已检查:$($candidateBins -join ', ')"
|
Write-Error "❌ 未找到可用的 DuckDB UCRT64 编译器。已检查:$($candidateBins -join ', ')"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user