Skip to content

Commit

Permalink
Use github actions-provided Python executables on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 22, 2024
1 parent 144fd2b commit 21a8bfd
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,23 +109,19 @@ jobs:
target: x64
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
# There seem to be linking errors on Windows with the uv-provided Python
# executables, so we use the Python versions provided by github actions
# for now.
# Seems to be this question: https://stackoverflow.com/questions/78557803/python-with-rust-cannot-open-input-file-python3-lib
- uses: actions/setup-python@v5
with:
enable-cache: true
version: "0.4.x"

- name: Install Python versions
run: uv python install 3.9 3.10 3.11 3.12 pypy3.10

python-version: 3.x
architecture: ${{ matrix.platform.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
# Note: we exclude 3.13 from Windows, because it failed with a link error
# https://github.com/kylebarron/arro3/pull/263
args: --release --out dist -i 3.9 -i 3.10 -i 3.11 -i 3.12 -i pypy3.10 --manifest-path obstore/Cargo.toml
args: --release --out dist --find-interpreter --manifest-path obstore/Cargo.toml
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 21a8bfd

Please sign in to comment.