From 5f0d352786c6c14266ad156779c7714130c7da0f Mon Sep 17 00:00:00 2001 From: Greg Sweeney Date: Thu, 24 Oct 2024 09:08:16 -0700 Subject: [PATCH] Build and distribute for linux (#78) * build and distribute for linux * install OpenSSL * set OPENSSL_DIR and PKG_CONFIG_PATH * try before-script-linux * try apt and yum * no linux aarch64 * openssl-dev instead of libssl-dev * separate jobs for linux x86_64 and aarch64 * fix * no aarch64 * simplify --- .github/workflows/CI.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a82eba1..7d84118 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,6 +19,28 @@ permissions: contents: read jobs: + linux-x86_64: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - name: Build wheels + uses: PyO3/maturin-action@v1 + with: + target: x86_64 + args: --release --out dist --find-interpreter + sccache: 'true' + manylinux: auto + before-script-linux: | + yum install openssl-devel -y + - name: Upload wheels + uses: actions/upload-artifact@v4 + with: + name: wheels-linux-x86_64 + path: dist + windows: runs-on: ${{ matrix.platform.runner }} strategy: @@ -120,7 +142,7 @@ jobs: permissions: contents: write if: "startsWith(github.ref, 'refs/tags/')" - needs: [windows, macos, sdist] + needs: [linux-x86_64, windows, macos, sdist] steps: - uses: actions/download-artifact@v4 - name: Install the latest version of uv