From 83ea59d7385e8b756cec1ace6aec0d4f70e74fea Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Tue, 26 Mar 2024 11:54:22 +0100 Subject: [PATCH] ci: fix --- .github/workflows/release.yaml | 56 ++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index eb8f19d81..1dbb8886f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -78,36 +78,38 @@ jobs: # Build Python extension. build-py: - runs-on: ${{ format('{0}-latest', matrix.os) }} + runs-on: ${{ matrix.os) }} strategy: fail-fast: false matrix: - os: [ ubuntu, macos, windows ] - python-version: [ 'cp310', 'pp37', 'pp38', 'pp39' ] - arch: [ main, alt ] + python-version: [ 'cp310', 'pp38', 'pp39' ] + build: + - linux + - macos + - windows include: - - os: ubuntu - platform: linux - - os: windows - ls: dir - - os: macos - arch: alt - alt_arch_name: 'arm64 universal2' - exclude: - - os: windows - arch: alt - - os: macos - python-version: 'pp37' - arch: alt - - os: macos - python-version: 'pp38' + - build: linux + os: ubuntu-latest + target: x86_64-unknown-linux-gnu + vcpkg_openssl_triplet: x64-linux-release arch: alt - - os: macos - python-version: 'pp39' + args: "--features=openssl-static" + + - build: macos + os: macos-latest + target: x86_64-apple-darwin + vcpkg_openssl_triplet: x64-osx-release arch: alt - - os: ubuntu + alt_arch_name: 'arm64 universal2' + args: "--features=openssl-static" + + - build: windows + os: windows-latest + target: x86_64-pc-windows-msvc + vcpkg_openssl_triplet: x64-windows-static arch: alt - + args: "" + steps: - name: Checkout sources uses: actions/checkout@v3 @@ -122,6 +124,14 @@ jobs: with: toolchain: stable + - name: Install dependencies + id: vcpkg + uses: johnwason/vcpkg-action@v6 + with: + pkgs: openssl + triplet: ${{ matrix.vcpkg_openssl_triplet }} + token: ${{ github.token }} + - name: Install Python dependencies run: pip install -U setuptools wheel twine cibuildwheel platformdirs