@@ -107,8 +107,6 @@ jobs:
107
107
with :
108
108
fetch-depth : 1
109
109
persist-credentials : false
110
- - name : Runner image version
111
- run : echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
112
110
- name : Check Autoconf and aclocal versions
113
111
run : |
114
112
grep "Generated by GNU Autoconf 2.71" configure
@@ -149,17 +147,17 @@ jobs:
149
147
with :
150
148
python-version : ' 3.x'
151
149
- name : Runner image version
152
- run : echo "IMAGE_VERSION =${ImageVersion}" >> $GITHUB_ENV
150
+ run : echo "IMAGE_OS_VERSION =${ImageOS}-${ ImageVersion}" >> " $GITHUB_ENV"
153
151
- name : Restore config.cache
154
152
uses : actions/cache@v4
155
153
with :
156
154
path : config.cache
157
155
# Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python
158
- key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
159
- - name : Install Dependencies
156
+ key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
157
+ - name : Install dependencies
160
158
run : sudo ./.github/workflows/posix-deps-apt.sh
161
159
- name : Add ccache to PATH
162
- run : echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
160
+ run : echo "PATH=/usr/lib/ccache:$PATH" >> " $GITHUB_ENV"
163
161
- name : Configure ccache action
164
162
uses :
hendrikmuhs/[email protected]
165
163
with :
@@ -312,21 +310,21 @@ jobs:
312
310
with :
313
311
persist-credentials : false
314
312
- name : Runner image version
315
- run : echo "IMAGE_VERSION =${ImageVersion}" >> $GITHUB_ENV
313
+ run : echo "IMAGE_OS_VERSION =${ImageOS}-${ ImageVersion}" >> " $GITHUB_ENV"
316
314
- name : Restore config.cache
317
315
uses : actions/cache@v4
318
316
with :
319
317
path : config.cache
320
- key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
318
+ key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.check_source.outputs.config_hash }}
321
319
- name : Register gcc problem matcher
322
320
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
323
- - name : Install Dependencies
321
+ - name : Install dependencies
324
322
run : sudo ./.github/workflows/posix-deps-apt.sh
325
323
- name : Configure OpenSSL env vars
326
324
run : |
327
- echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
328
- echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> $GITHUB_ENV
329
- echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
325
+ echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> " $GITHUB_ENV"
326
+ echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> " $GITHUB_ENV"
327
+ echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> " $GITHUB_ENV"
330
328
- name : ' Restore OpenSSL build'
331
329
id : cache-openssl
332
330
uses : actions/cache@v4
@@ -335,10 +333,10 @@ jobs:
335
333
key : ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
336
334
- name : Install OpenSSL
337
335
if : steps.cache-openssl.outputs.cache-hit != 'true'
338
- run : python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
336
+ run : python3 Tools/ssl/multissltests.py --steps=library --base-directory " $MULTISSL_DIR" --openssl " $OPENSSL_VER" --system Linux
339
337
- name : Add ccache to PATH
340
338
run : |
341
- echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
339
+ echo "PATH=/usr/lib/ccache:$PATH" >> " $GITHUB_ENV"
342
340
- name : Configure ccache action
343
341
uses :
hendrikmuhs/[email protected]
344
342
with :
@@ -375,13 +373,13 @@ jobs:
375
373
persist-credentials : false
376
374
- name : Register gcc problem matcher
377
375
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
378
- - name : Install Dependencies
376
+ - name : Install dependencies
379
377
run : sudo ./.github/workflows/posix-deps-apt.sh
380
378
- name : Configure OpenSSL env vars
381
379
run : |
382
- echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
383
- echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> $GITHUB_ENV
384
- echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
380
+ echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> " $GITHUB_ENV"
381
+ echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> " $GITHUB_ENV"
382
+ echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> " $GITHUB_ENV"
385
383
- name : ' Restore OpenSSL build'
386
384
id : cache-openssl
387
385
uses : actions/cache@v4
@@ -393,33 +391,33 @@ jobs:
393
391
run : python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
394
392
- name : Add ccache to PATH
395
393
run : |
396
- echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
394
+ echo "PATH=/usr/lib/ccache:$PATH" >> " $GITHUB_ENV"
397
395
- name : Configure ccache action
398
396
uses :
hendrikmuhs/[email protected]
399
397
with :
400
398
save : false
401
399
- name : Setup directory envs for out-of-tree builds
402
400
run : |
403
- echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
404
- echo "CPYTHON_BUILDDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-builddir)" >> $GITHUB_ENV
401
+ echo "CPYTHON_RO_SRCDIR=$(realpath -m " ${GITHUB_WORKSPACE}" /../cpython-ro-srcdir)" >> " $GITHUB_ENV"
402
+ echo "CPYTHON_BUILDDIR=$(realpath -m " ${GITHUB_WORKSPACE}" /../cpython-builddir)" >> " $GITHUB_ENV"
405
403
- name : Create directories for read-only out-of-tree builds
406
- run : mkdir -p $CPYTHON_RO_SRCDIR $CPYTHON_BUILDDIR
404
+ run : mkdir -p " $CPYTHON_RO_SRCDIR" " $CPYTHON_BUILDDIR"
407
405
- name : Bind mount sources read-only
408
- run : sudo mount --bind -o ro $GITHUB_WORKSPACE $CPYTHON_RO_SRCDIR
406
+ run : sudo mount --bind -o ro " $GITHUB_WORKSPACE" " $CPYTHON_RO_SRCDIR"
409
407
- name : Runner image version
410
- run : echo "IMAGE_VERSION =${ImageVersion}" >> $GITHUB_ENV
408
+ run : echo "IMAGE_OS_VERSION =${ImageOS}-${ ImageVersion}" >> " $GITHUB_ENV"
411
409
- name : Restore config.cache
412
410
uses : actions/cache@v4
413
411
with :
414
412
path : ${{ env.CPYTHON_BUILDDIR }}/config.cache
415
- key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
413
+ key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.check_source.outputs.config_hash }}
416
414
- name : Configure CPython out-of-tree
417
415
working-directory : ${{ env.CPYTHON_BUILDDIR }}
418
416
run : |
419
417
../cpython-ro-srcdir/configure \
420
418
--config-cache \
421
419
--with-pydebug \
422
- --with-openssl=$OPENSSL_DIR
420
+ --with-openssl=" $OPENSSL_DIR"
423
421
- name : Build CPython out-of-tree
424
422
working-directory : ${{ env.CPYTHON_BUILDDIR }}
425
423
run : make -j4
@@ -428,18 +426,18 @@ jobs:
428
426
run : make pythoninfo
429
427
- name : Remount sources writable for tests
430
428
# some tests write to srcdir, lack of pyc files slows down testing
431
- run : sudo mount $CPYTHON_RO_SRCDIR -oremount,rw
429
+ run : sudo mount " $CPYTHON_RO_SRCDIR" -oremount,rw
432
430
- name : Setup directory envs for out-of-tree builds
433
431
run : |
434
- echo "CPYTHON_BUILDDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-builddir)" >> $GITHUB_ENV
432
+ echo "CPYTHON_BUILDDIR=$(realpath -m " ${GITHUB_WORKSPACE}" /../cpython-builddir)" >> " $GITHUB_ENV"
435
433
- name : " Create hypothesis venv"
436
434
working-directory : ${{ env.CPYTHON_BUILDDIR }}
437
435
run : |
438
436
VENV_LOC=$(realpath -m .)/hypovenv
439
437
VENV_PYTHON=$VENV_LOC/bin/python
440
- echo "HYPOVENV=${VENV_LOC}" >> $GITHUB_ENV
441
- echo "VENV_PYTHON=${VENV_PYTHON}" >> $GITHUB_ENV
442
- ./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -r ${GITHUB_WORKSPACE}/Tools/requirements-hypothesis.txt
438
+ echo "HYPOVENV=${VENV_LOC}" >> " $GITHUB_ENV"
439
+ echo "VENV_PYTHON=${VENV_PYTHON}" >> " $GITHUB_ENV"
440
+ ./python -m venv " $VENV_LOC" && " $VENV_PYTHON" -m pip install -r " ${GITHUB_WORKSPACE}/Tools/requirements-hypothesis.txt"
443
441
- name : ' Restore Hypothesis database'
444
442
id : cache-hypothesis-database
445
443
uses : actions/cache@v4
@@ -493,25 +491,25 @@ jobs:
493
491
with :
494
492
persist-credentials : false
495
493
- name : Runner image version
496
- run : echo "IMAGE_VERSION =${ImageVersion}" >> $GITHUB_ENV
494
+ run : echo "IMAGE_OS_VERSION =${ImageOS}-${ ImageVersion}" >> " $GITHUB_ENV"
497
495
- name : Restore config.cache
498
496
uses : actions/cache@v4
499
497
with :
500
498
path : config.cache
501
- key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
499
+ key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.check_source.outputs.config_hash }}
502
500
- name : Register gcc problem matcher
503
501
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
504
- - name : Install Dependencies
502
+ - name : Install dependencies
505
503
run : sudo ./.github/workflows/posix-deps-apt.sh
506
504
- name : Set up GCC-10 for ASAN
507
505
uses : egor-tensin/setup-gcc@v1
508
506
with :
509
507
version : 10
510
508
- name : Configure OpenSSL env vars
511
509
run : |
512
- echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
513
- echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> $GITHUB_ENV
514
- echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
510
+ echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> " $GITHUB_ENV"
511
+ echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> " $GITHUB_ENV"
512
+ echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> " $GITHUB_ENV"
515
513
- name : ' Restore OpenSSL build'
516
514
id : cache-openssl
517
515
uses : actions/cache@v4
@@ -520,10 +518,10 @@ jobs:
520
518
key : ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
521
519
- name : Install OpenSSL
522
520
if : steps.cache-openssl.outputs.cache-hit != 'true'
523
- run : python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
521
+ run : python3 Tools/ssl/multissltests.py --steps=library --base-directory " $MULTISSL_DIR" --openssl " $OPENSSL_VER" --system Linux
524
522
- name : Add ccache to PATH
525
523
run : |
526
- echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
524
+ echo "PATH=/usr/lib/ccache:$PATH" >> " $GITHUB_ENV"
527
525
- name : Configure ccache action
528
526
uses :
hendrikmuhs/[email protected]
529
527
with :
0 commit comments