Skip to content

Commit

Permalink
Build and distribute for linux (#78)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
greg-kcio authored Oct 24, 2024
1 parent 36639c2 commit 5f0d352
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5f0d352

Please sign in to comment.