Skip to content

Commit

Permalink
Disable OpenSSL compilation on Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
facutuesca committed Oct 17, 2024
1 parent 1c78345 commit 479d396
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,35 @@ jobs:
matrix:
platform:
- runner: windows-latest
arch: 64
target: x64
- runner: windows-latest
arch: 32
target: x86
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
architecture: ${{ matrix.platform.target }}
- name: Install OpenSSL
env:
OPENSSL_INSTALLER: "Win${{ matrix.platform.arch }}OpenSSL-3_3_2.exe"
OPENSSL_PATH: "C:\\OpenSSL-Win${{ matrix.platform.arch }}"
run: |
curl.exe -o "c:\\${env:OPENSSL_INSTALLER}" -fsSL "https://slproweb.com/download/${env:OPENSSL_INSTALLER}"
Start-Process -FilePath "c:\\${env:OPENSSL_INSTALLER}" -ArgumentList "/silent /verysilent /DIR=${env:OPENSSL_PATH}" -NoNewWindow -Wait
echo "Installed OpenSSL version:"
Start-Process -FilePath "${env:OPENSSL_PATH}\\bin\\openssl.exe" -ArgumentList "version" -Wait -NoNewWindow
echo "Folder contents:"
ls ${env:OPENSSL_PATH} -Recurse
- name: Build wheels
uses: PyO3/maturin-action@v1
env:
OPENSSL_DIR: "C:\\OpenSSL-Win${{ matrix.platform.arch }}"
OPENSSL_LIB_DIR: "C:\\OpenSSL-Win${{ matrix.platform.arch }}\\lib\\VC\\${{ matrix.platform.target }}\\MD"
# Do not build OpenSSL on Windows, since we are installing it
OPENSSL_NO_VENDOR: 1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
Expand Down

0 comments on commit 479d396

Please sign in to comment.