-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alexis <[email protected]>
- Loading branch information
Showing
1 changed file
with
10 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,16 +110,13 @@ jobs: | |
matrix: | ||
WINDOWS: | ||
- {ARCH: 'x86', WINDOWS: 'win32', RUST_TRIPLE: 'i686-pc-windows-msvc'} | ||
# - {ARCH: 'x64', WINDOWS: 'win64', RUST_TRIPLE: 'x86_64-pc-windows-msvc'} | ||
PYTHON: | ||
- {VERSION: "3.11", "ABI_VERSION": "py37"} | ||
- {VERSION: "3.11", "ABI_VERSION": "py39"} | ||
name: "${{ matrix.PYTHON.VERSION }} ${{ matrix.WINDOWS.WINDOWS }} ${{ matrix.PYTHON.ABI_VERSION }}" | ||
- {ARCH: 'x64', WINDOWS: 'win64', RUST_TRIPLE: 'x86_64-pc-windows-msvc'} | ||
name: ${{ matrix.WINDOWS.WINDOWS }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
- uses: actions/[email protected] | ||
with: | ||
name: rfc3161-sdist | ||
- name: Install the latest version of uv | ||
|
@@ -128,18 +125,18 @@ jobs: | |
version: "0.4.18" | ||
enable-cache: true | ||
cache-dependency-glob: pyproject.toml | ||
# This action is required because we cannot use `uv python install` as it prevents | ||
# installing Python for another arch | ||
# We cannot use `uv python install` because it doesn't allow to install python | ||
# version for another architecture | ||
- name: Setup python | ||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.PYTHON.VERSION }} | ||
python-version: 3.x | ||
architecture: ${{ matrix.WINDOWS.ARCH }} | ||
- uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 | ||
with: | ||
toolchain: stable | ||
target: ${{ matrix.WINDOWS.RUST_TRIPLE }} | ||
- uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6 | ||
- uses: dawidd6/action-download-artifact@v6 | ||
with: | ||
repo: pyca/infra | ||
workflow: build-windows-openssl.yml | ||
|
@@ -157,11 +154,7 @@ jobs: | |
- run: mkdir wheelhouse | ||
- name: Build wheel | ||
run: | | ||
if [ -n "${{ matrix.PYTHON.ABI_VERSION }}" ]; then | ||
PY_LIMITED_API="--config-settings=build-args=--features=pyo3/abi3-${{ matrix.PYTHON.ABI_VERSION }}" | ||
fi | ||
uv build --wheel rfc3161*.tar.gz $PY_LIMITED_API -o wheelhouse/ | ||
uv build --wheel rfc3161*.tar.gz -o wheelhouse/ | ||
shell: bash | ||
- name: Test Install | ||
run: | | ||
|
@@ -173,11 +166,8 @@ jobs: | |
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "rfc3161-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.VERSION }}-${{ matrix.PYTHON.ABI_VERSION }}" | ||
name: "wheels-windows-${{ matrix.WINDOWS.ARCH }}" | ||
path: wheelhouse | ||
- name: Setup tmate session | ||
uses: mxschmitt/action-tmate@v3 | ||
if: ${{ failure() }} | ||
|
||
macos: | ||
runs-on: ${{ matrix.platform.runner }} | ||
|