@@ -20,10 +20,36 @@ jobs:
20
20
- uses : actions/setup-python@v4
21
21
with :
22
22
python-version : ${{ matrix.python-version }}
23
- - name : Install dependencies
23
+
24
+ - name : Install common dependencies
24
25
run : |
25
26
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'
27
53
28
54
- name : Build wheels
29
55
uses : PyO3/maturin-action@v1
32
58
args : --release --out dist --find-interpreter
33
59
sccache : " true"
34
60
manylinux : auto
61
+
35
62
- name : Upload wheels
36
63
uses : actions/upload-artifact@v3
37
64
with :
0 commit comments