@@ -102,6 +102,11 @@ jobs:
102
102
if : needs.check_source.outputs.run_tests == 'true'
103
103
steps :
104
104
- uses : actions/checkout@v3
105
+ - name : Restore config.cache
106
+ uses : actions/cache@v3
107
+ with :
108
+ path : config.cache
109
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
105
110
- uses : actions/setup-python@v3
106
111
- name : Install Dependencies
107
112
run : sudo ./.github/workflows/posix-deps-apt.sh
@@ -118,7 +123,7 @@ jobs:
118
123
- name : Configure CPython
119
124
run : |
120
125
# Build Python with the libpython dynamic library
121
- ./configure --with-pydebug --enable-shared
126
+ ./configure --config-cache -- with-pydebug --enable-shared
122
127
- name : Regenerate autoconf files with container image
123
128
run : make regen-configure
124
129
- name : Build CPython
@@ -196,6 +201,11 @@ jobs:
196
201
PYTHONSTRICTEXTENSIONBUILD : 1
197
202
steps :
198
203
- uses : actions/checkout@v3
204
+ - name : Restore config.cache
205
+ uses : actions/cache@v3
206
+ with :
207
+ path : config.cache
208
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
199
209
- name : Install Homebrew dependencies
200
210
run :
brew install pkg-config [email protected] xz gdbm tcl-tk
201
211
- name : Configure CPython
@@ -204,6 +214,7 @@ jobs:
204
214
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \
205
215
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
206
216
./configure \
217
+ --config-cache \
207
218
--with-pydebug \
208
219
--prefix=/opt/python-dev \
209
220
--with-openssl="$(brew --prefix [email protected] )"
@@ -256,9 +267,18 @@ jobs:
256
267
run : mkdir -p $CPYTHON_RO_SRCDIR $CPYTHON_BUILDDIR
257
268
- name : Bind mount sources read-only
258
269
run : sudo mount --bind -o ro $GITHUB_WORKSPACE $CPYTHON_RO_SRCDIR
270
+ - name : Restore config.cache
271
+ uses : actions/cache@v3
272
+ with :
273
+ path : ${{ env.CPYTHON_BUILDDIR }}/config.cache
274
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
259
275
- name : Configure CPython out-of-tree
260
276
working-directory : ${{ env.CPYTHON_BUILDDIR }}
261
- run : ../cpython-ro-srcdir/configure --with-pydebug --with-openssl=$OPENSSL_DIR
277
+ run : |
278
+ ../cpython-ro-srcdir/configure \
279
+ --config-cache \
280
+ --with-pydebug \
281
+ --with-openssl=$OPENSSL_DIR
262
282
- name : Build CPython out-of-tree
263
283
working-directory : ${{ env.CPYTHON_BUILDDIR }}
264
284
run : make -j4
@@ -289,6 +309,11 @@ jobs:
289
309
LD_LIBRARY_PATH : ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
290
310
steps :
291
311
- uses : actions/checkout@v3
312
+ - name : Restore config.cache
313
+ uses : actions/cache@v3
314
+ with :
315
+ path : config.cache
316
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
292
317
- name : Register gcc problem matcher
293
318
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
294
319
- name : Install Dependencies
@@ -313,15 +338,14 @@ jobs:
313
338
- name : Configure ccache action
314
339
uses :
hendrikmuhs/[email protected]
315
340
- name : Configure CPython
316
- run : ./configure --with-pydebug --with-openssl=$OPENSSL_DIR
341
+ run : ./configure --config-cache -- with-pydebug --with-openssl=$OPENSSL_DIR
317
342
- name : Build CPython
318
343
run : make -j4
319
344
- name : Display build info
320
345
run : make pythoninfo
321
346
- name : SSL tests
322
347
run : ./python Lib/test/ssltests.py
323
348
324
-
325
349
build_asan :
326
350
name : ' Address sanitizer'
327
351
runs-on : ubuntu-20.04
@@ -334,6 +358,11 @@ jobs:
334
358
ASAN_OPTIONS : detect_leaks=0:allocator_may_return_null=1:handle_segv=0
335
359
steps :
336
360
- uses : actions/checkout@v3
361
+ - name : Restore config.cache
362
+ uses : actions/cache@v3
363
+ with :
364
+ path : config.cache
365
+ key : ${{ github.job }}-${{ runner.os }}-${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}
337
366
- name : Register gcc problem matcher
338
367
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
339
368
- name : Install Dependencies
@@ -362,7 +391,7 @@ jobs:
362
391
- name : Configure ccache action
363
392
uses :
hendrikmuhs/[email protected]
364
393
- name : Configure CPython
365
- run : ./configure --with-address-sanitizer --without-pymalloc
394
+ run : ./configure --config-cache -- with-address-sanitizer --without-pymalloc
366
395
- name : Build CPython
367
396
run : make -j4
368
397
- name : Display build info
0 commit comments