Skip to content

Commit 3e9265c

Browse files
committed
ci: use 'python' instead of 'python3' for x64 macOS build
- actions/setup-python installs x64 Python as 'python' on Apple Silicon runners. Using 'python3' may fall back to the system arm64 interpreter.
1 parent a5235d8 commit 3e9265c

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@ jobs:
2929

3030
- name: Verify Python architecture
3131
run: |
32-
which python3
33-
python3 -c "import platform; print(platform.machine())"
32+
echo "=== python ==="
33+
which python || true
34+
python -c "import platform; print(platform.machine())" || true
35+
echo "=== python3 ==="
36+
which python3 || true
37+
python3 -c "import platform; print(platform.machine())" || true
3438
3539
- name: Build macOS x64 binary
36-
run: python3 build_binaries.py darwin
40+
run: python build_binaries.py darwin
3741

3842
- name: Inspect binary
3943
run: file bin/darwin/docugenius-cli

0 commit comments

Comments
 (0)