Skip to content

Commit 75a5ba4

Browse files
committed
Fix uv weirdness.
1 parent 135b014 commit 75a5ba4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/actions/setup-anki/action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,20 @@ runs:
6161
cache: false # ci.yml manages its own cargo cache
6262
rustflags: "" # don't inject -D warnings; the build system handles this
6363

64-
# Install uv via setup-uv and point the build system at it via UV_BINARY
65-
# so it skips downloading its own copy (see build/ninja_gen/src/python.rs).
6664
- name: Install uv
6765
id: setup-uv
6866
uses: astral-sh/setup-uv@v7
6967
with:
7068
enable-cache: true
7169
prune-cache: ${{ runner.os != 'Windows' }} # Windows file-locking breaks cache pruning
7270

73-
- name: Set UV_BINARY
71+
# UV_BINARY tells the build system to use our uv instead of downloading
72+
# its own (see build/ninja_gen/src/python.rs). Linux-only because on
73+
# macOS ARM the launcher needs the downloaded archive to build a universal
74+
# binary via lipo (see build/configure/src/launcher.rs), and on Windows
75+
# the build system manages its own download.
76+
- name: Set UV_BINARY (Linux)
77+
if: runner.os == 'Linux'
7478
shell: bash
7579
run: echo "UV_BINARY=${{ steps.setup-uv.outputs.uv-path }}" >> "$GITHUB_ENV"
7680

0 commit comments

Comments
 (0)