@@ -113,6 +113,11 @@ jobs:
113
113
if : needs.check_source.outputs.run_tests == 'true'
114
114
steps :
115
115
- uses : actions/checkout@v3
116
+ - name : Restore config.cache
117
+ uses : actions/cache@v3
118
+ with :
119
+ path : config.cache
120
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
116
121
- uses : actions/setup-python@v3
117
122
- name : Install Dependencies
118
123
run : sudo ./.github/workflows/posix-deps-apt.sh
@@ -129,7 +134,7 @@ jobs:
129
134
- name : Configure CPython
130
135
run : |
131
136
# Build Python with the libpython dynamic library
132
- ./configure --with-pydebug --enable-shared
137
+ ./configure --config-cache -- with-pydebug --enable-shared
133
138
- name : Regenerate autoconf files with container image
134
139
run : make regen-configure
135
140
- name : Build CPython
@@ -210,6 +215,11 @@ jobs:
210
215
PYTHONSTRICTEXTENSIONBUILD : 1
211
216
steps :
212
217
- uses : actions/checkout@v3
218
+ - name : Restore config.cache
219
+ uses : actions/cache@v3
220
+ with :
221
+ path : config.cache
222
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
213
223
- name : Install Homebrew dependencies
214
224
run :
brew install pkg-config [email protected] xz gdbm tcl-tk
215
225
- name : Configure CPython
@@ -218,6 +228,7 @@ jobs:
218
228
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \
219
229
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
220
230
./configure \
231
+ --config-cache \
221
232
--with-pydebug \
222
233
--prefix=/opt/python-dev \
223
234
--with-openssl="$(brew --prefix [email protected] )"
@@ -270,9 +281,18 @@ jobs:
270
281
run : mkdir -p $CPYTHON_RO_SRCDIR $CPYTHON_BUILDDIR
271
282
- name : Bind mount sources read-only
272
283
run : sudo mount --bind -o ro $GITHUB_WORKSPACE $CPYTHON_RO_SRCDIR
284
+ - name : Restore config.cache
285
+ uses : actions/cache@v3
286
+ with :
287
+ path : ${{ env.CPYTHON_BUILDDIR }}/config.cache
288
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
273
289
- name : Configure CPython out-of-tree
274
290
working-directory : ${{ env.CPYTHON_BUILDDIR }}
275
- run : ../cpython-ro-srcdir/configure --with-pydebug --with-openssl=$OPENSSL_DIR
291
+ run : |
292
+ ../cpython-ro-srcdir/configure \
293
+ --config-cache \
294
+ --with-pydebug \
295
+ --with-openssl=$OPENSSL_DIR
276
296
- name : Build CPython out-of-tree
277
297
working-directory : ${{ env.CPYTHON_BUILDDIR }}
278
298
run : make -j4
@@ -303,6 +323,11 @@ jobs:
303
323
LD_LIBRARY_PATH : ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
304
324
steps :
305
325
- uses : actions/checkout@v3
326
+ - name : Restore config.cache
327
+ uses : actions/cache@v3
328
+ with :
329
+ path : config.cache
330
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
306
331
- name : Register gcc problem matcher
307
332
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
308
333
- name : Install Dependencies
@@ -327,7 +352,7 @@ jobs:
327
352
- name : Configure ccache action
328
353
uses :
hendrikmuhs/[email protected]
329
354
- name : Configure CPython
330
- run : ./configure --with-pydebug --with-openssl=$OPENSSL_DIR
355
+ run : ./configure --config-cache -- with-pydebug --with-openssl=$OPENSSL_DIR
331
356
- name : Build CPython
332
357
run : make -j4
333
358
- name : Display build info
@@ -336,7 +361,7 @@ jobs:
336
361
run : ./python Lib/test/ssltests.py
337
362
338
363
test_hypothesis :
339
- name : " Hypothesis Tests on Ubuntu"
364
+ name : " Hypothesis tests on Ubuntu"
340
365
runs-on : ubuntu-20.04
341
366
timeout-minutes : 60
342
367
needs : check_source
@@ -377,9 +402,18 @@ jobs:
377
402
run : mkdir -p $CPYTHON_RO_SRCDIR $CPYTHON_BUILDDIR
378
403
- name : Bind mount sources read-only
379
404
run : sudo mount --bind -o ro $GITHUB_WORKSPACE $CPYTHON_RO_SRCDIR
405
+ - name : Restore config.cache
406
+ uses : actions/cache@v3
407
+ with :
408
+ path : ${{ env.CPYTHON_BUILDDIR }}/config.cache
409
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
380
410
- name : Configure CPython out-of-tree
381
411
working-directory : ${{ env.CPYTHON_BUILDDIR }}
382
- run : ../cpython-ro-srcdir/configure --with-pydebug --with-openssl=$OPENSSL_DIR
412
+ run : |
413
+ ../cpython-ro-srcdir/configure \
414
+ --config-cache \
415
+ --with-pydebug \
416
+ --with-openssl=$OPENSSL_DIR
383
417
- name : Build CPython out-of-tree
384
418
working-directory : ${{ env.CPYTHON_BUILDDIR }}
385
419
run : make -j4
@@ -447,6 +481,11 @@ jobs:
447
481
ASAN_OPTIONS : detect_leaks=0:allocator_may_return_null=1:handle_segv=0
448
482
steps :
449
483
- uses : actions/checkout@v3
484
+ - name : Restore config.cache
485
+ uses : actions/cache@v3
486
+ with :
487
+ path : config.cache
488
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
450
489
- name : Register gcc problem matcher
451
490
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
452
491
- name : Install Dependencies
@@ -475,7 +514,7 @@ jobs:
475
514
- name : Configure ccache action
476
515
uses :
hendrikmuhs/[email protected]
477
516
- name : Configure CPython
478
- run : ./configure --with-address-sanitizer --without-pymalloc
517
+ run : ./configure --config-cache -- with-address-sanitizer --without-pymalloc
479
518
- name : Build CPython
480
519
run : make -j4
481
520
- name : Display build info
0 commit comments