Skip to content

Commit 9f2605d

Browse files
committed
Updated builds, windows uv installation and push / pr trigger
1 parent 745dfd6 commit 9f2605d

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: 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

512
env:
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

0 commit comments

Comments
 (0)