|
25 | 25 | permissions: |
26 | 26 | contents: read |
27 | 27 |
|
| 28 | +concurrency: |
| 29 | + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 30 | + cancel-in-progress: true |
| 31 | + |
28 | 32 | jobs: |
29 | 33 | check_source: |
30 | 34 | name: 'Check for source changes' |
31 | 35 | runs-on: ubuntu-latest |
32 | 36 | outputs: |
33 | 37 | run_tests: ${{ steps.check.outputs.run_tests }} |
34 | | - run_ssl_tests: ${{ steps.check.outputs.run_ssl_tests }} |
35 | 38 | steps: |
36 | 39 | - uses: actions/checkout@v3 |
37 | 40 | - name: Check for source changes |
38 | 41 | id: check |
39 | 42 | run: | |
40 | 43 | if [ -z "$GITHUB_BASE_REF" ]; then |
41 | 44 | echo '::set-output name=run_tests::true' |
42 | | - echo '::set-output name=run_ssl_tests::true' |
43 | 45 | else |
44 | 46 | git fetch origin $GITHUB_BASE_REF --depth=1 |
45 | 47 | # git diff "origin/$GITHUB_BASE_REF..." (3 dots) may be more |
|
56 | 58 | # |
57 | 59 | # https://github.com/python/core-workflow/issues/373 |
58 | 60 | 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 | 61 | fi |
61 | 62 |
|
62 | 63 | check_generated_files: |
|
72 | 73 | - name: Add ccache to PATH |
73 | 74 | run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV |
74 | 75 | - name: Configure ccache action |
75 | | - uses: hendrikmuhs/ccache-action@v1 |
| 76 | + uses: hendrikmuhs/ccache-action@v1.2 |
76 | 77 | - name: Check Autoconf version 2.69 and aclocal 1.16.3 |
77 | 78 | run: | |
78 | 79 | grep "Generated by GNU Autoconf 2.69" configure |
@@ -201,7 +202,7 @@ jobs: |
201 | 202 | run: | |
202 | 203 | echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV |
203 | 204 | - name: Configure ccache action |
204 | | - uses: hendrikmuhs/ccache-action@v1 |
| 205 | + uses: hendrikmuhs/ccache-action@v1.2 |
205 | 206 | - name: Setup directory envs for out-of-tree builds |
206 | 207 | run: | |
207 | 208 | echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV |
@@ -230,7 +231,7 @@ jobs: |
230 | 231 | name: 'Ubuntu SSL tests with OpenSSL' |
231 | 232 | runs-on: ubuntu-20.04 |
232 | 233 | 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' |
234 | 235 | strategy: |
235 | 236 | fail-fast: false |
236 | 237 | matrix: |
@@ -264,7 +265,7 @@ jobs: |
264 | 265 | run: | |
265 | 266 | echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV |
266 | 267 | - name: Configure ccache action |
267 | | - uses: hendrikmuhs/ccache-action@v1 |
| 268 | + uses: hendrikmuhs/ccache-action@v1.2 |
268 | 269 | - name: Configure CPython |
269 | 270 | run: ./configure --with-pydebug --with-openssl=$OPENSSL_DIR |
270 | 271 | - name: Build CPython |
@@ -308,7 +309,7 @@ jobs: |
308 | 309 | run: | |
309 | 310 | echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV |
310 | 311 | - name: Configure ccache action |
311 | | - uses: hendrikmuhs/ccache-action@v1 |
| 312 | + uses: hendrikmuhs/ccache-action@v1.2 |
312 | 313 | - name: Configure CPython |
313 | 314 | run: ./configure --with-address-sanitizer --without-pymalloc |
314 | 315 | - name: Build CPython |
|
0 commit comments