Skip to content

Commit

Permalink
Simplify the action
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis <[email protected]>
  • Loading branch information
DarkaMaul committed Nov 6, 2024
1 parent c2a2d60 commit 4544973
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand All @@ -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 }}
Expand Down

0 comments on commit 4544973

Please sign in to comment.