2525permissions :
2626 contents : read
2727
28+ concurrency :
29+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
30+ cancel-in-progress : true
31+
2832jobs :
2933 check_source :
3034 name : ' Check for source changes'
3135 runs-on : ubuntu-latest
3236 outputs :
3337 run_tests : ${{ steps.check.outputs.run_tests }}
34- run_ssl_tests : ${{ steps.check.outputs.run_ssl_tests }}
3538 steps :
3639 - uses : actions/checkout@v3
3740 - name : Check for source changes
3841 id : check
3942 run : |
4043 if [ -z "$GITHUB_BASE_REF" ]; then
41- echo '::set-output name=run_tests::true'
42- echo '::set-output name=run_ssl_tests::true'
44+ echo "run_tests=true" >> $GITHUB_OUTPUT
4345 else
4446 git fetch origin $GITHUB_BASE_REF --depth=1
4547 # git diff "origin/$GITHUB_BASE_REF..." (3 dots) may be more
5557 # into the PR branch anyway.
5658 #
5759 # https://github.com/python/core-workflow/issues/373
58- git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc)' && echo '::set-output name=run_tests::true' || true
59- git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qE '(ssl|hashlib|hmac|^.github)' && echo '::set-output name=run_ssl_tests::true' || true
60+ git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc)' && echo "run_tests=true" >> $GITHUB_OUTPUT || true
6061 fi
6162
6263 check_generated_files :
7273 - name : Add ccache to PATH
7374 run : echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
7475 - name : Configure ccache action
75- uses : hendrikmuhs/ccache-action@v1
76+ uses : hendrikmuhs/ccache-action@v1.2
7677 - name : Check Autoconf version 2.69 and aclocal 1.16.3
7778 run : |
7879 grep "Generated by GNU Autoconf 2.69" configure
@@ -175,7 +176,7 @@ jobs:
175176 needs : check_source
176177 if : needs.check_source.outputs.run_tests == 'true'
177178 env :
178- OPENSSL_VER : 1.1.1q
179+ OPENSSL_VER : 1.1.1s
179180 PYTHONSTRICTEXTENSIONBUILD : 1
180181 steps :
181182 - uses : actions/checkout@v3
@@ -201,7 +202,7 @@ jobs:
201202 run : |
202203 echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
203204 - name : Configure ccache action
204- uses : hendrikmuhs/ccache-action@v1
205+ uses : hendrikmuhs/ccache-action@v1.2
205206 - name : Setup directory envs for out-of-tree builds
206207 run : |
207208 echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
@@ -230,11 +231,11 @@ jobs:
230231 name : ' Ubuntu SSL tests with OpenSSL'
231232 runs-on : ubuntu-20.04
232233 needs : check_source
233- if : needs.check_source.outputs.run_tests == 'true' && needs.check_source.outputs.run_ssl_tests == 'true'
234+ if : needs.check_source.outputs.run_tests == 'true'
234235 strategy :
235236 fail-fast : false
236237 matrix :
237- openssl_ver : [1.1.1q , 3.0.5 ]
238+ openssl_ver : [1.1.1s , 3.0.7 ]
238239 env :
239240 OPENSSL_VER : ${{ matrix.openssl_ver }}
240241 MULTISSL_DIR : ${{ github.workspace }}/multissl
@@ -264,7 +265,7 @@ jobs:
264265 run : |
265266 echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
266267 - name : Configure ccache action
267- uses : hendrikmuhs/ccache-action@v1
268+ uses : hendrikmuhs/ccache-action@v1.2
268269 - name : Configure CPython
269270 run : ./configure --with-pydebug --with-openssl=$OPENSSL_DIR
270271 - name : Build CPython
@@ -281,7 +282,7 @@ jobs:
281282 needs : check_source
282283 if : needs.check_source.outputs.run_tests == 'true'
283284 env :
284- OPENSSL_VER : 1.1.1q
285+ OPENSSL_VER : 1.1.1s
285286 PYTHONSTRICTEXTENSIONBUILD : 1
286287 ASAN_OPTIONS : detect_leaks=0:allocator_may_return_null=1:handle_segv=0
287288 steps :
@@ -308,7 +309,7 @@ jobs:
308309 run : |
309310 echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
310311 - name : Configure ccache action
311- uses : hendrikmuhs/ccache-action@v1
312+ uses : hendrikmuhs/ccache-action@v1.2
312313 - name : Configure CPython
313314 run : ./configure --with-address-sanitizer --without-pymalloc
314315 - name : Build CPython
0 commit comments