Skip to content

Commit

Permalink
Fix linux cross platform builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeceHumphreys committed Dec 6, 2023
1 parent eef4cf9 commit c8ae36d
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
target: [x86_64, aarch64, armv7]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
# Install OpenSSL and pkg-config
- name: Install OpenSSL
run: sudo apt-get update && sudo apt-get install -y libssl-dev libudev-dev pkg-config
# Set environment variables for OpenSSL
- name: Set OpenSSL environment variables
run: |
# Show files in /usr/local/
ls -l /usr/local/
# Set environment variables for OpenSSL
export OPENSSL_DIR=/usr/local/opt/openssl
- name: Check pkg-config for OpenSSL
run: pkg-config --libs --cflags openssl
- name: Build wheels with verbose output
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter -vv
sccache: "true"
manylinux: auto
before-script-linux: |
if [ "${{ matrix.target }}" = "aarch64" ] || [ "${{ matrix.target }}" = "armv7" ]; then
apt-get update -y
apt-get install -y libssl-dev libudev-dev pkg-config
elif [ "${{ matrix.target }}" = "x86_64" ]; then
yum update -y
yum install -y openssl-devel libudev-devel
fi
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit c8ae36d

Please sign in to comment.