Skip to content

Commit d8d1eed

Browse files
committed
wip
1 parent 559dd5d commit d8d1eed

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.github/workflows/CD.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,36 @@ jobs:
2020
- uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
23-
- name: Install dependencies
23+
24+
- name: Install common dependencies
2425
run: |
2526
sudo apt-get update
26-
sudo apt-get install libssl-dev pkg-config
27+
sudo apt-get install pkg-config
28+
29+
- name: Install dependencies for x86_64 and x86
30+
if: matrix.target == 'x86_64' || matrix.target == 'x86'
31+
run: sudo apt-get install libssl-dev
32+
33+
- name: Install dependencies for aarch64
34+
if: matrix.target == 'aarch64'
35+
run: sudo apt-get install libssl-dev:arm64
36+
37+
- name: Install dependencies for armv7
38+
if: matrix.target == 'armv7'
39+
run: sudo apt-get install libssl-dev:armhf
40+
41+
- name: Install dependencies for s390x
42+
if: matrix.target == 's390x'
43+
run: sudo apt-get install libssl-dev:s390x
44+
45+
- name: Install dependencies for ppc64le
46+
if: matrix.target == 'ppc64le'
47+
run: sudo apt-get install libssl-dev:ppc64el
48+
49+
- name: Set environment variables for OpenSSL (if necessary)
50+
run: |
51+
echo "OPENSSL_DIR=/usr/include/openssl" >> $GITHUB_ENV
52+
if: matrix.target == 'ppc64le'
2753

2854
- name: Build wheels
2955
uses: PyO3/maturin-action@v1
@@ -32,6 +58,7 @@ jobs:
3258
args: --release --out dist --find-interpreter
3359
sccache: "true"
3460
manylinux: auto
61+
3562
- name: Upload wheels
3663
uses: actions/upload-artifact@v3
3764
with:

0 commit comments

Comments
 (0)