@@ -41,27 +41,17 @@ jobs:
41
41
- uses : actions/setup-python@v5
42
42
with :
43
43
python-version : ' 3.10'
44
+ - name : Build minimal maturin docker container
45
+ run :
46
+ docker build -t maturin-release:latest -f synapse_auto_compressor/docker/release.Dockerfile .
44
47
- name : Build wheels
45
48
uses : PyO3/maturin-action@v1
46
49
with :
47
50
target : ${{ matrix.platform.target }}
48
51
args : --release --out dist --find-interpreter
49
52
sccache : ' true'
50
53
manylinux : auto
51
- before-script-linux : |
52
- # If we're running on rhel centos, install needed packages.
53
- if command -v yum &> /dev/null; then
54
- yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
55
-
56
- # If we're running on i686 we need to symlink libatomic
57
- # in order to build openssl with -latomic flag.
58
- if [[ ! -d "/usr/lib64" ]]; then
59
- ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
60
- fi
61
- else
62
- # If we're running on debian-based system.
63
- apt update -y && apt-get install -y libssl-dev openssl pkg-config
64
- fi
54
+ container : maturin-release:latest
65
55
- name : Upload wheels
66
56
uses : actions/upload-artifact@v4
67
57
with :
@@ -83,12 +73,16 @@ jobs:
83
73
with :
84
74
python-version : ' 3.10'
85
75
architecture : ${{ matrix.platform.target }}
76
+ - name : Build minimal maturin docker container
77
+ run :
78
+ docker build -t maturin-release:latest -f synapse_auto_compressor/docker/release.Dockerfile .
86
79
- name : Build wheels
87
80
uses : PyO3/maturin-action@v1
88
81
with :
89
82
target : ${{ matrix.platform.target }}
90
83
args : --release --out dist --find-interpreter
91
84
sccache : ' true'
85
+ container : maturin-release:latest
92
86
- name : Upload wheels
93
87
uses : actions/upload-artifact@v4
94
88
with :
@@ -109,12 +103,16 @@ jobs:
109
103
- uses : actions/setup-python@v5
110
104
with :
111
105
python-version : ' 3.10'
106
+ - name : Build minimal maturin docker container
107
+ run :
108
+ docker build -t maturin-release:latest -f synapse_auto_compressor/docker/release.Dockerfile .
112
109
- name : Build wheels
113
110
uses : PyO3/maturin-action@v1
114
111
with :
115
112
target : ${{ matrix.platform.target }}
116
113
args : --release --out dist --find-interpreter
117
114
sccache : ' true'
115
+ container : maturin-release:latest
118
116
- name : Upload wheels
119
117
uses : actions/upload-artifact@v4
120
118
with :
0 commit comments