27
27
runs-on : ubuntu-latest
28
28
name : sdists
29
29
steps :
30
- - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
30
+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
31
31
with :
32
32
# The tag to build or the tag received by the tag event
33
33
ref : ${{ github.event.inputs.version || github.ref }}
@@ -40,19 +40,23 @@ jobs:
40
40
run : .venv/bin/python -m build --sdist
41
41
- name : Make sdist and wheel (vectors)
42
42
run : cd vectors/ && ../.venv/bin/python -m build
43
- - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1 .3
43
+ - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3 .3
44
44
with :
45
45
name : " cryptography-sdist"
46
46
path : dist/cryptography*
47
- - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1 .3
47
+ - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3 .3
48
48
with :
49
49
name : " vectors-sdist-wheel"
50
50
path : vectors/dist/cryptography*
51
51
52
52
manylinux :
53
53
needs : [sdist]
54
54
runs-on : ${{ matrix.MANYLINUX.RUNNER }}
55
- container : ghcr.io/pyca/${{ matrix.MANYLINUX.CONTAINER }}
55
+ container :
56
+ image : ghcr.io/pyca/${{ matrix.MANYLINUX.CONTAINER }}
57
+ volumes :
58
+ - /staticnodehost:/staticnodecontainer:rw,rshared
59
+ - /staticnodehost:/__e/node20:ro,rshared
56
60
strategy :
57
61
fail-fast : false
58
62
matrix :
@@ -102,6 +106,9 @@ jobs:
102
106
MANYLINUX : { NAME: "manylinux2014_aarch64", CONTAINER: "cryptography-manylinux2014_aarch64", RUNNER: [self-hosted, Linux, ARM64]}
103
107
name : " ${{ matrix.PYTHON.VERSION }} for ${{ matrix.MANYLINUX.NAME }}"
104
108
steps :
109
+ - name : Ridiculous-er workaround for static node20
110
+ run : |
111
+ cp -R /staticnode/* /staticnodecontainer/
105
112
- name : Ridiculous alpine workaround for actions support on arm64
106
113
run : |
107
114
# This modifies /etc/os-release so the JS actions
@@ -112,7 +119,7 @@ jobs:
112
119
if : startsWith(matrix.MANYLINUX.NAME, 'musllinux') && endsWith(matrix.MANYLINUX.NAME, 'aarch64')
113
120
114
121
- name : Get build-requirements.txt from repository
115
- uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
122
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
116
123
with :
117
124
# The tag to build or the tag received by the tag event
118
125
ref : ${{ github.event.inputs.version || github.ref }}
@@ -124,7 +131,7 @@ jobs:
124
131
- name : Install Python dependencies
125
132
run : .venv/bin/pip install --require-hashes -r ${{ env.BUILD_REQUIREMENTS_PATH }}
126
133
127
- - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
134
+ - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
128
135
with :
129
136
name : cryptography-sdist
130
137
- run : mkdir tmpwheelhouse
@@ -135,7 +142,7 @@ jobs:
135
142
fi
136
143
OPENSSL_DIR="/opt/pyca/cryptography/openssl" \
137
144
OPENSSL_STATIC=1 \
138
- .venv/bin/python -m pip wheel -v $PY_LIMITED_API cryptograph*.tar.gz -w dist/ && mv dist/cryptography*.whl tmpwheelhouse
145
+ .venv/bin/python -m pip wheel -v --no-deps $PY_LIMITED_API cryptograph*.tar.gz -w dist/ && mv dist/cryptography*.whl tmpwheelhouse
139
146
env :
140
147
RUSTUP_HOME : /root/.rustup
141
148
- run : auditwheel repair --plat ${{ matrix.MANYLINUX.NAME }} tmpwheelhouse/cryptograph*.whl -w wheelhouse/
@@ -153,7 +160,7 @@ jobs:
153
160
.venv/bin/python -c "from cryptography.hazmat.backends.openssl.backend import backend;print('Loaded: ' + backend.openssl_version_text());print('Linked Against: ' + backend._ffi.string(backend._lib.OPENSSL_VERSION_TEXT).decode('ascii'))"
154
161
- run : mkdir cryptography-wheelhouse
155
162
- run : mv wheelhouse/cryptography*.whl cryptography-wheelhouse/
156
- - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1 .3
163
+ - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3 .3
157
164
with :
158
165
name : " cryptography-${{ github.event.inputs.version }}-${{ matrix.MANYLINUX.NAME }}-${{ matrix.PYTHON.VERSION }}-${{ matrix.PYTHON.ABI_VERSION }}"
159
166
path : cryptography-wheelhouse/
@@ -212,7 +219,7 @@ jobs:
212
219
name : " ${{ matrix.PYTHON.VERSION }} ABI ${{ matrix.PYTHON.ABI_VERSION }} macOS ${{ matrix.PYTHON.ARCHFLAGS }}"
213
220
steps :
214
221
- name : Get build-requirements.txt from repository
215
- uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
222
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
216
223
with :
217
224
# The tag to build or the tag received by the tag event
218
225
ref : ${{ github.event.inputs.version || github.ref }}
@@ -228,11 +235,11 @@ jobs:
228
235
PYTHON_DOWNLOAD_URL : ${{ matrix.PYTHON.DOWNLOAD_URL }}
229
236
if : contains(matrix.PYTHON.VERSION, 'pypy') == false
230
237
- name : Setup pypy
231
- uses : actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0 .0
238
+ uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1 .0
232
239
with :
233
240
python-version : ${{ matrix.PYTHON.VERSION }}
234
241
if : contains(matrix.PYTHON.VERSION, 'pypy')
235
- - uses : dawidd6/action-download-artifact@e7466d1a7587ed14867642c2ca74b5bcc1e19a2d # v3.0.0
242
+ - uses : dawidd6/action-download-artifact@deb3bb83256a78589fef6a7b942e5f2573ad7c13 # v5
236
243
with :
237
244
repo : pyca/infra
238
245
workflow : build-macos-openssl.yml
@@ -250,7 +257,7 @@ jobs:
250
257
- name : Install Python dependencies
251
258
run : venv/bin/pip install --require-hashes -r ${{ env.BUILD_REQUIREMENTS_PATH }}
252
259
253
- - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
260
+ - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
254
261
with :
255
262
name : cryptography-sdist
256
263
- run : mkdir wheelhouse
@@ -262,7 +269,7 @@ jobs:
262
269
263
270
OPENSSL_DIR="$(readlink -f ../openssl-macos-universal2/)" \
264
271
OPENSSL_STATIC=1 \
265
- venv/bin/python -m pip wheel -v $PY_LIMITED_API cryptograph*.tar.gz -w dist/ && mv dist/cryptography*.whl wheelhouse
272
+ venv/bin/python -m pip wheel -v --no-deps $PY_LIMITED_API cryptograph*.tar.gz -w dist/ && mv dist/cryptography*.whl wheelhouse
266
273
env :
267
274
MACOSX_DEPLOYMENT_TARGET : ${{ matrix.PYTHON.DEPLOYMENT_TARGET }}
268
275
ARCHFLAGS : ${{ matrix.PYTHON.ARCHFLAGS }}
@@ -278,7 +285,7 @@ jobs:
278
285
- run : mv wheelhouse/cryptography*.whl cryptography-wheelhouse/
279
286
- run : |
280
287
echo "CRYPTOGRAPHY_WHEEL_NAME=$(basename $(ls cryptography-wheelhouse/cryptography*.whl))" >> $GITHUB_ENV
281
- - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1 .3
288
+ - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3 .3
282
289
with :
283
290
name : " ${{ env.CRYPTOGRAPHY_WHEEL_NAME }}"
284
291
path : cryptography-wheelhouse/
@@ -306,7 +313,7 @@ jobs:
306
313
name : " ${{ matrix.PYTHON.VERSION }} ${{ matrix.WINDOWS.WINDOWS }} ${{ matrix.PYTHON.ABI_VERSION }}"
307
314
steps :
308
315
- name : Get build-requirements.txt from repository
309
- uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
316
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
310
317
with :
311
318
# The tag to build or the tag received by the tag event
312
319
ref : ${{ github.event.inputs.version || github.ref }}
@@ -315,12 +322,12 @@ jobs:
315
322
${{ env.BUILD_REQUIREMENTS_PATH }}
316
323
sparse-checkout-cone-mode : false
317
324
318
- - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
325
+ - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
319
326
with :
320
327
name : cryptography-sdist
321
328
322
329
- name : Setup python
323
- uses : actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0 .0
330
+ uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1 .0
324
331
with :
325
332
python-version : ${{ matrix.PYTHON.VERSION }}
326
333
architecture : ${{ matrix.WINDOWS.ARCH }}
@@ -329,7 +336,7 @@ jobs:
329
336
toolchain : 1.77.2
330
337
target : ${{ matrix.WINDOWS.RUST_TRIPLE }}
331
338
332
- - uses : dawidd6/action-download-artifact@e7466d1a7587ed14867642c2ca74b5bcc1e19a2d # v3.0.0
339
+ - uses : dawidd6/action-download-artifact@deb3bb83256a78589fef6a7b942e5f2573ad7c13 # v5
333
340
with :
334
341
repo : pyca/infra
335
342
workflow : build-windows-openssl.yml
@@ -351,7 +358,7 @@ jobs:
351
358
PY_LIMITED_API="--config-settings=--build-option=--py-limited-api=${{ matrix.PYTHON.ABI_VERSION }} --no-build-isolation"
352
359
fi
353
360
354
- python -m pip wheel -v cryptography*.tar.gz $PY_LIMITED_API -w dist/ && mv dist/cryptography*.whl wheelhouse/
361
+ python -m pip wheel -v --no-deps cryptography*.tar.gz $PY_LIMITED_API -w dist/ && mv dist/cryptography*.whl wheelhouse/
355
362
shell: bash
356
363
- run : pip install -f wheelhouse --no-index cryptography
357
364
- name : Print the OpenSSL we built and linked against
@@ -360,7 +367,7 @@ jobs:
360
367
361
368
- run : mkdir cryptography-wheelhouse
362
369
- run : move wheelhouse\cryptography*.whl cryptography-wheelhouse\
363
- - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1 .3
370
+ - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3 .3
364
371
with :
365
372
name : " cryptography-${{ github.event.inputs.version }}-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.VERSION }}-${{ matrix.PYTHON.ABI_VERSION }}"
366
373
path : cryptography-wheelhouse\
0 commit comments