File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -21,25 +21,19 @@ jobs:
2121 with :
2222 path : ./
2323
24+ - name : Install MinGW
25+ if : runner.os == 'Windows'
26+ run : |
27+ choco install mingw -y
28+ $mingwPath = "C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
29+ echo "$mingwPath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
30+
2431 - name : Windows rust toolchain
2532 if : runner.os == 'Windows'
2633 run : |
2734 rm core/rs/integration_check/rust-toolchain.toml
2835 rustup component add rust-src --toolchain 1.93.0-x86_64-pc-windows-gnu
2936 rustup default 1.93.0-x86_64-pc-windows-gnu
30- $rustcPath = rustup which rustc --toolchain 1.93.0-x86_64-pc-windows-gnu
31- $toolchainPath = Split-Path (Split-Path $rustcPath)
32- Write-Host "Toolchain path: $toolchainPath"
33- Write-Host "Searching for gcc.exe..."
34- Get-ChildItem -Path "$toolchainPath" -Recurse -Filter "gcc.exe" -ErrorAction SilentlyContinue | Select-Object -First 5 | ForEach-Object { Write-Host $_.FullName }
35- $mingwGcc = "$toolchainPath/bin/gcc.exe" -replace '\\', '/'
36- Write-Host "Setting CI_GCC to: $mingwGcc"
37- if (Test-Path $mingwGcc.Replace('/', '\')) {
38- Write-Host "gcc.exe found at: $mingwGcc"
39- } else {
40- Write-Host "WARNING: gcc.exe not found at: $mingwGcc"
41- }
42- echo "CI_GCC=$mingwGcc" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
4337
4438 - name : Test
4539 run : |
You can’t perform that action at this time.
0 commit comments