File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI
22
3- on : [push, pull_request]
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+ - master
9+ - develop
10+ - ' release/**'
411
512env :
613 # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -138,6 +145,13 @@ jobs:
138145 - name : Install uv
139146 uses : astral-sh/setup-uv@v6
140147
148+ - name : Resolve uv path on Windows host
149+ shell : pwsh
150+ run : |
151+ $uvExe = (Get-Command uv -ErrorAction Stop).Source
152+ $uvDir = Split-Path -Parent $uvExe
153+ "UV_WIN_DIR=$uvDir" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
154+
141155 - name : Setup MSYS2
142156 uses : msys2/setup-msys2@v2
143157 with :
@@ -156,10 +170,10 @@ jobs:
156170 mingw-w64-ucrt-x86_64-gmp
157171 mingw-w64-ucrt-x86_64-mpfr
158172
159- - name : Resolve uv path in MSYS2 shell
173+ - name : Verify uv in MSYS2 shell
160174 shell : msys2 {0}
161175 run : |
162- UV_DIR="$(cygpath "$USERPROFILE/.local/bin ")"
176+ UV_DIR="$(cygpath "$UV_WIN_DIR ")"
163177 echo "UV_DIR=$UV_DIR" >> "$GITHUB_ENV"
164178 export PATH="$UV_DIR:$PATH"
165179 uv --version
You can’t perform that action at this time.
0 commit comments