Skip to content

Commit 9962a2b

Browse files
committed
?
1 parent 0b16e7f commit 9962a2b

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/c-tests.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)